<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Unicode strings with printf</title>
	<atom:link href="http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/</link>
	<description>Macrobug Blog</description>
	<lastBuildDate>Tue, 20 Jul 2010 21:22:49 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Day Barr</title>
		<link>http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/comment-page-1/#comment-299</link>
		<dc:creator>Day Barr</dc:creator>
		<pubDate>Wed, 14 Feb 2007 18:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/#comment-299</guid>
		<description>That should of course be 

wprintf(L&quot;%S&quot;, ...)

and not

wprintf(&quot;%S&quot;, ...)

Enough geekery!</description>
		<content:encoded><![CDATA[<p>That should of course be </p>
<p>wprintf(L&#8221;%S&#8221;, &#8230;)</p>
<p>and not</p>
<p>wprintf(&#8221;%S&#8221;, &#8230;)</p>
<p>Enough geekery!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Day Barr</title>
		<link>http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/comment-page-1/#comment-298</link>
		<dc:creator>Day Barr</dc:creator>
		<pubDate>Wed, 14 Feb 2007 18:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.macrobug.com/blog/2007/02/14/unicode-strings-with-printf/#comment-298</guid>
		<description>I believe also that the format string &quot;%S&quot; is synonymous with &quot;%ls&quot;.

In Microsoft&#039;s runtime library at least, wprintf(&quot;%S&quot;, ...) behaves symmetrically and will print a single-byte-character string into the resulting wide string output.

If you&#039;ve ever had the misfortune to work with TCHAR strings, then you may see a dilema here:

_tprintf(_T(&quot;%s&quot;), ptr) allows you put a TCHAR* into the resulting TCHAR output.  So what is the type of ptr in the expression _tprintf(_T(&quot;%S&quot;), ptr) ?

!TCHAR ?</description>
		<content:encoded><![CDATA[<p>I believe also that the format string &#8220;%S&#8221; is synonymous with &#8220;%ls&#8221;.</p>
<p>In Microsoft&#8217;s runtime library at least, wprintf(&#8221;%S&#8221;, &#8230;) behaves symmetrically and will print a single-byte-character string into the resulting wide string output.</p>
<p>If you&#8217;ve ever had the misfortune to work with TCHAR strings, then you may see a dilema here:</p>
<p>_tprintf(_T(&#8221;%s&#8221;), ptr) allows you put a TCHAR* into the resulting TCHAR output.  So what is the type of ptr in the expression _tprintf(_T(&#8221;%S&#8221;), ptr) ?</p>
<p>!TCHAR ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

