<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.19431"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020>Rajan, apologies for not being more
clear.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020>I did not mean to imply that wide string functions were
not useful/used. I use them often (although, I admit, mostly in test code,
not in my primary applications)!</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020>I was just pointing out that the
<STRONG>strfromd</STRONG> (etc.) functions are not widely used (if at all ..
google finds none on simple search) .. and it seems the implementations of them
that exist don't follow the C Standard anyway. Therefore, perhaps there is
indeed 'no point' in this proposal and we should gracefully withdraw
it.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=788331120-19022020>Mike</SPAN></FONT></DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Rajan Bhakta [mailto:rbhakta@us.ibm.com]
<BR><B>Sent:</B> 19 February 2020 20:03<BR><B>To:</B> Mike
Cowlishaw<BR><B>Cc:</B> 'CFP'<BR><B>Subject:</B> RE: [Cfp-interest 1496] Re:
AI item to submit proposal about why no wide string strfrom
functions<BR></FONT><BR></DIV>
<DIV></DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif">Hi
Mike,</SPAN><BR><BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif">I
would probably not go that route since we proposed adding this example in the
first place to WG14 (i.e. No one asked us to do so, we brought it up due to a
CFP discussion). If, after asking WG14 to bless us adding this, we then say
there is no point, I'd wonder why we asked in the first
place.</SPAN><BR><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif">With regards to your specific
point about wide string functions not being widely used, I agree they are not
widely used, but they are used and there have been requests by two separate
WG14 members to add in versions of wide string functions to other (unrelated
to floating point) proposals so I think it is good we do mention
them.</SPAN><BR><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif">Regards,<BR><BR>Rajan
Bhakta<BR>z/OS XL C/C++ Compiler Technical Architect<BR>ISO C Standards
Representative for Canada, PL22.11 Chair (USA)<BR>C Compiler
Development<BR>Contact: rbhakta@us.ibm.com, Rajan
Bhakta/Houston/IBM</SPAN><BR><BR><BR><BR><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif; COLOR: #5f5f5f">From:
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif">"Mike Cowlishaw"
<mfc@speleotrove.com></SPAN><BR><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif; COLOR: #5f5f5f">To:
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif">"'Rajan Bhakta'"
<rbhakta@us.ibm.com></SPAN><BR><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif; COLOR: #5f5f5f">Cc:
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif">"'CFP'"
<cfp-interest@ucbtest.org></SPAN><BR><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif; COLOR: #5f5f5f">Date:
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif">02/19/2020 01:11
PM</SPAN><BR><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif; COLOR: #5f5f5f">Subject:
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif">[EXTERNAL] RE: [Cfp-interest
1496] Re: AI item to submit proposal about why no
wide string strfrom functions</SPAN><BR>
<HR noShade>
<BR><BR><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: blue">Touché
:-).</SPAN><BR><SPAN style="FONT-SIZE: 12pt"> </SPAN><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: blue">So therefore,
perhaps, it would be better to say '</SPAN><SPAN style="FONT-SIZE: 10pt">we
don't have wide strfromd functions</SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: blue">' because they are
neither widely used nor implemented consistently (I'd never heard of them
before this discussion) and it is clearer and more likely to be understood if
the programmer simply uses strnprintf ...?</SPAN><BR><SPAN
style="FONT-SIZE: 12pt"> </SPAN><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: blue">Mike</SPAN><BR><SPAN
style="FONT-SIZE: 12pt"> </SPAN><BR><BR>
<HR>
<SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><B>From:</B> Rajan Bhakta
[</SPAN><A href="mailto:rbhakta@us.ibm.com"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">mailto:rbhakta@us.ibm.com</SPAN></A><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">] <B><BR>Sent:</B> 19 February
2020 18:16<B><BR>To:</B> Mike Cowlishaw<B><BR>Cc:</B> 'CFP'<B><BR>Subject:</B>
Re: [Cfp-interest 1496] Re: AI item to submit proposal about why no wide
string strfrom functions</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR></SPAN><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif">Hi Mike,</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif"><BR>I think the point of the
example was explicitly to say why we don't have wide strfromd functions, so it
really makes sense to keep strfromd there.</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: sans-serif"><BR>Regards,<BR><BR>Rajan
Bhakta<BR>z/OS XL C/C++ Compiler Technical Architect<BR>ISO C Standards
Representative for Canada, PL22.11 Chair (USA)<BR>C Compiler
Development<BR>Contact: rbhakta@us.ibm.com, Rajan
Bhakta/Houston/IBM</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR><BR><BR></SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: sans-serif"><BR>From:
"Mike Cowlishaw" <mfc@speleotrove.com><BR>To:
"'CFP'" <cfp-interest@ucbtest.org><BR>Date:
02/19/2020 11:49 AM<BR>Subject: [EXTERNAL]
[Cfp-interest 1496] Re: AI item to submit proposal about why no
wide string strfrom functions<BR>Sent by:
cfp-interest-bounces@oakapple.net</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR></SPAN>
<HR noShade>
<SPAN style="FONT-SIZE: 12pt"><BR><BR></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>Hmm, given the uncertainty
about </SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><B><BR>int nc = strfromd(s,
n, “%g”, d);</B></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>... perhaps just change that
line to use </SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"><B>snprintf</B></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">, which has 'well-known'
behaviour?<BR>Mike</SPAN><SPAN style="FONT-SIZE: 12pt"><BR><BR><BR></SPAN>
<HR>
<SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><B>From:</B>
cfp-interest-bounces@oakapple.net [</SPAN><A
href="mailto:cfp-interest-bounces@oakapple.net"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; COLOR: blue"><U>mailto:cfp-interest-bounces@oakapple.net</U></SPAN></A><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">] <B>On Behalf Of </B>Jim
Thomas<B><BR>Sent:</B> 05 February 2020 20:11<B><BR>To:</B> Damian
McGuckin<B><BR>Cc:</B> CFP<B><BR>Subject:</B> [Cfp-interest 1468] Re: AI item
to submit proposal about why no wide string strfrom functions</SPAN><SPAN
style="FONT-SIZE: 12pt"><BR><BR>Here’s an update for the code segment:
<BR></SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier New"><B><BR>#include
<stdlib.h><BR>const size_t n = 20;<BR>double d;</B></SPAN><SPAN
style="FONT-SIZE: 12pt"><BR>…</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: Courier New"><B><BR>// convert d to
single-byte character string s<BR>char s[n];<BR>int nc = strfromd(s, n, “%g”,
d);<BR>// convert s (regarded as a multi-byte character <BR>// string) to wide
string ws<BR>wchar_t ws[n];<BR>(void)mbstowcs(ws, s, n);</B></SPAN><SPAN
style="FONT-SIZE: 12pt"><BR><BR>On Feb 5, 2020, at 9:55 AM, Jim Thomas
<</SPAN><A href="mailto:jaswthomas@sbcglobal.net"><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U>jaswthomas@sbcglobal.net</U></SPAN></A><SPAN
style="FONT-SIZE: 12pt">> wrote:<BR><BR>Probably so. the other code
examples in the C standard include all the declarations. Update to
follow.<BR><BR>- Jim<BR><BR>On Feb 4, 2020, at 4:04 PM, Damian McGuckin
<</SPAN><A href="mailto:damianm@esi.com.au"><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U>damianm@esi.com.au</U></SPAN></A><SPAN
style="FONT-SIZE: 12pt">> wrote:<BR><BR>On Tue, 4 Feb 2020, Jim Thomas
wrote:<BR><BR>Action item:<BR> Jim: Get a WG14 document
number and submit<BR>
C2x_proposal_-_why_no_wide_string_strfrom_functions-<BR>
20191230.pdf.<BR>The following was submitted to WG14:</SPAN><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U><BR></U></SPAN><A
href="http://wiki.edg.com/pub/CFP/WebHome/n2475.pdf"><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U>http://wiki.edg.com/pub/CFP/WebHome/n2475.pdf</U></SPAN></A><SPAN
style="FONT-SIZE: 12pt"><BR><BR>Do you need a declaration for the wide string
'ws' in that code at the end?<BR><BR>Regards - Damian<BR><BR>Pacific
Engineering Systems International, 277-279 Broadway, Glebe NSW
2037<BR>Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not
wanted here<BR>Views & opinions here are mine and not those of any past or
present
employer<BR><BR><BR>_______________________________________________<BR>Cfp-interest
mailing list</SPAN><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U><BR></U></SPAN><A
href="mailto:Cfp-interest@oakapple.net"><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U>Cfp-interest@oakapple.net</U></SPAN></A><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U><BR></U></SPAN><A
href="http://mailman.oakapple.net/mailman/listinfo/cfp-interest"><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U>http://mailman.oakapple.net/mailman/listinfo/cfp-interest</U></SPAN></A><TT><SPAN
style="FONT-SIZE: 10pt"><BR>_______________________________________________<BR>Cfp-interest
mailing list<BR>Cfp-interest@oakapple.net</SPAN></TT><SPAN
style="FONT-SIZE: 12pt; COLOR: blue"><U><BR></U></SPAN><A
href="http://mailman.oakapple.net/mailman/listinfo/cfp-interest"><TT><SPAN
style="FONT-SIZE: 10pt; COLOR: blue"><U>http://mailman.oakapple.net/mailman/listinfo/cfp-interest</U></SPAN></TT></A><SPAN
style="FONT-SIZE: 12pt"><BR><BR><BR></SPAN><BR><BR><BR></BLOCKQUOTE></BODY></HTML>