<?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[Frage zu einlesen einer UTF-8 Datei]]></title><description><![CDATA[<p>Hallo,<br />
ich versuche gerade eine UTF-8 Datei einzulesen und habe dazu diesen <a href="http://www.c-plusplus.net/forum/p2034858" rel="nofollow">Thread</a> gefunden. Nun habe ich zu der Lösung mit boost eine Frage.<br />
In dieser Zeile</p>
<pre><code class="language-cpp">ifs.imbue( std::locale( ifs.getloc(), new boost::program_options::detail::utf8_codecvt_facet() ) )
</code></pre>
<p>wir im Funktionsaufruf ein new verwendet. Ist das ganze eigentlich ein Memory-Leak oder nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294797/frage-zu-einlesen-einer-utf-8-datei</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 18:11:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294797.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Nov 2011 18:40:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu einlesen einer UTF-8 Datei on Tue, 01 Nov 2011 18:40:36 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich versuche gerade eine UTF-8 Datei einzulesen und habe dazu diesen <a href="http://www.c-plusplus.net/forum/p2034858" rel="nofollow">Thread</a> gefunden. Nun habe ich zu der Lösung mit boost eine Frage.<br />
In dieser Zeile</p>
<pre><code class="language-cpp">ifs.imbue( std::locale( ifs.getloc(), new boost::program_options::detail::utf8_codecvt_facet() ) )
</code></pre>
<p>wir im Funktionsaufruf ein new verwendet. Ist das ganze eigentlich ein Memory-Leak oder nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138893</guid><dc:creator><![CDATA[Utifer]]></dc:creator><pubDate>Tue, 01 Nov 2011 18:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu einlesen einer UTF-8 Datei on Tue, 01 Nov 2011 19:36:04 GMT]]></title><description><![CDATA[<p>Das ist kein Memory Leak. Siehe <a href="http://www.cplusplus.com/reference/std/locale/locale/locale/" rel="nofollow">http://www.cplusplus.com/reference/std/locale/locale/locale/</a></p>
<blockquote>
<p>The locale object takes over responsibility of deleting this facet object.</p>
</blockquote>
<p>Warum das so gelöst wurde, weiß ich aber auch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138935</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Tue, 01 Nov 2011 19:36:04 GMT</pubDate></item></channel></rss>