<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[u8string, u*cout im gcc-4.4.1]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte mal mit dem unicode-Support, der ja im neuen Standard Einzug erhält, etwas experimentieren. Leider habe ich gewisse Probleme und weiß nicht ob es nur am gcc liegt.</p>
<p>Laut den Infos, die ich bisher gefunden habe, gibt es folgende neue strings:<br />
u8string -&gt; utf-8<br />
u16string -&gt; utf16<br />
u32string -&gt; utf32<br />
Und gleich der erste &quot;Schock&quot;: Ich hab hier keinen u8string, müsste also wenn unicode gleich mit nem utf-16 arbeiten.</p>
<p>Das nächste ist das cout.<br />
Angeblich soll es ja entsprechend zu wstring auch für die neuen string-typedefs u.A. die cout's geben.<br />
Die gibt es bei mir absolut nicht, hier nichteinmal für utf-16 und utf-32 (u16cout bzw. u32cout)!</p>
<p>Kann das einer hier mit gcc-4.4.1 bestätigen?<br />
Ich habe eine Standard-Gentoo-gcc-Installation auf einem 64-bitter (amd64).<br />
Würde mich sehr freuen, wenn irgend jemand mich weiter schubsen könnte (wenn es geht muss ich wohl nen Gentoo-Bug melden)</p>
<p>Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/248728/u8string-u-cout-im-gcc-4-4-1</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 17:38:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/248728.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 Aug 2009 10:25:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to u8string, u*cout im gcc-4.4.1 on Fri, 28 Aug 2009 10:25:49 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte mal mit dem unicode-Support, der ja im neuen Standard Einzug erhält, etwas experimentieren. Leider habe ich gewisse Probleme und weiß nicht ob es nur am gcc liegt.</p>
<p>Laut den Infos, die ich bisher gefunden habe, gibt es folgende neue strings:<br />
u8string -&gt; utf-8<br />
u16string -&gt; utf16<br />
u32string -&gt; utf32<br />
Und gleich der erste &quot;Schock&quot;: Ich hab hier keinen u8string, müsste also wenn unicode gleich mit nem utf-16 arbeiten.</p>
<p>Das nächste ist das cout.<br />
Angeblich soll es ja entsprechend zu wstring auch für die neuen string-typedefs u.A. die cout's geben.<br />
Die gibt es bei mir absolut nicht, hier nichteinmal für utf-16 und utf-32 (u16cout bzw. u32cout)!</p>
<p>Kann das einer hier mit gcc-4.4.1 bestätigen?<br />
Ich habe eine Standard-Gentoo-gcc-Installation auf einem 64-bitter (amd64).<br />
Würde mich sehr freuen, wenn irgend jemand mich weiter schubsen könnte (wenn es geht muss ich wohl nen Gentoo-Bug melden)</p>
<p>Thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1768160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1768160</guid><dc:creator><![CDATA[g++_unicode]]></dc:creator><pubDate>Fri, 28 Aug 2009 10:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to u8string, u*cout im gcc-4.4.1 on Mon, 31 Aug 2009 12:48:52 GMT]]></title><description><![CDATA[<p>push...<br />
Ich hab leider noch nix gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1769759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1769759</guid><dc:creator><![CDATA[g++_unicode]]></dc:creator><pubDate>Mon, 31 Aug 2009 12:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to u8string, u*cout im gcc-4.4.1 on Mon, 31 Aug 2009 12:53:45 GMT]]></title><description><![CDATA[<p>was sagt die Doku vom gcc darüber wie vollständig die Umsetzung des kommenden Standards schon ist? und IIRC muss man einen kommandozeilenparameter mitgeben, damit 0x-Features unterstützt werden, hast du das getan?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1769761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1769761</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 31 Aug 2009 12:53:45 GMT</pubDate></item><item><title><![CDATA[Reply to u8string, u*cout im gcc-4.4.1 on Mon, 31 Aug 2009 14:33:46 GMT]]></title><description><![CDATA[<p>Also im <a href="http://gcc.gnu.org/projects/cxx0x.html" rel="nofollow">C++0x Support in GCC</a> ist nur die Sprache von Unicode string literalen. Also dass zB u&quot;äöü&quot; ein utf16 String ist.<br />
u16string und u32string gibt es schon. u8string fehlt wohl noch. (Ist ja auch etwas schwieriger zu implementieren, wegen der dynamischen Zeichenlänge.)</p>
<p>g++_unicode, wo hast du denn die Infos bzgl den passenden cout Varianten gefunden?</p>
<p>Aber die C++0x Umsetzung ist noch längst nicht abgeschlossen, daher machen solche Bug-Meldungen wohl kaum Sinn. Und an <a href="http://bugs.gentoo.org" rel="nofollow">bugs.gentoo.org</a> eh nicht.</p>
<pre><code class="language-cpp">#include &lt;string&gt;

using namespace std;

int main()
{
	wstring strw = L&quot;äöü&quot;; /* length == 3 */
	u16string stru16 = u&quot;äöü&quot;; /* length == 3 */
	u32string stru32 = U&quot;äöü&quot;; /* length == 3 */
	string str = &quot;äöü&quot;; /* length == 6 */
//...
}
</code></pre>
<p>zB mit <code>g++ -std=c++0x ...</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1769835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1769835</guid><dc:creator><![CDATA[lagalopex]]></dc:creator><pubDate>Mon, 31 Aug 2009 14:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to u8string, u*cout im gcc-4.4.1 on Mon, 31 Aug 2009 16:12:12 GMT]]></title><description><![CDATA[<p>lagalopex schrieb:</p>
<blockquote>
<p>g++_unicode, wo hast du denn die Infos bzgl den passenden cout Varianten gefunden?</p>
</blockquote>
<p>Hab ich zufällig hier gefgunden:<br />
<a href="http://stackoverflow.com/questions/872491/new-unicode-characters-in-c0x" rel="nofollow">http://stackoverflow.com/questions/872491/new-unicode-characters-in-c0x</a><br />
Wird aber erwähnt, dass das in diversen Standard-Drafts steht.</p>
<blockquote>
<pre><code class="language-cpp">#include &lt;string&gt;

using namespace std;

int main()
{
	wstring strw = L&quot;äöü&quot;; /* length == 3 */
	u16string stru16 = u&quot;äöü&quot;; /* length == 3 */
	u32string stru32 = U&quot;äöü&quot;; /* length == 3 */
	string str = &quot;äöü&quot;; /* length == 6 */
//...
}
</code></pre>
<p>zB mit <code>g++ -std=c++0x ...</code></p>
</blockquote>
<p>Ja, das ist schon klar, soweit hab ich das auch schon gefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Aber wahrscheinlich liegt es echt nur daran, dass die u*cout noch nicht zur Verfügung gestellt wurden, ich werd mir erstmal mit einem eigenen u16cout behelfen.</p>
<p>Danke trotzdem! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1769892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1769892</guid><dc:creator><![CDATA[g++_unicode]]></dc:creator><pubDate>Mon, 31 Aug 2009 16:12:12 GMT</pubDate></item></channel></rss>