<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;color:#5f5f5f;font-family:sans-serif">From:
</span><span style=" font-size:9pt;font-family:sans-serif">"Mike
Cowlishaw" <mfc@speleotrove.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">To:
</span><span style=" font-size:9pt;font-family:sans-serif">"'Rajan
Bhakta'" <rbhakta@us.ibm.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Cc:
</span><span style=" font-size:9pt;font-family:sans-serif">"'CFP'"
<cfp-interest@ucbtest.org></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Date:
</span><span style=" font-size:9pt;font-family:sans-serif">02/19/2020
01:11 PM</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">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;color:blue;font-family:Arial">Touché :-).</span><br><span style=" font-size:12pt"> </span><br><span style=" font-size:10pt;color:blue;font-family:Arial">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;color:blue;font-family:Arial">'
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;color:blue;font-family:Arial">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;color:blue;font-family:Tahoma"><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>