Boost C++ Libraries: Ticket #7386: Bad windows codepage name - gb2312 (Simplified Chinese Codepage) https://svn.boost.org/trac10/ticket/7386 <p> In wconv_codepage.ipp <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp</a>, line 57 </p> <div class="wiki-code"><div class="code"><pre> <span class="p">{</span> <span class="s">&quot;gb2312&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> </pre></div></div><p> the codepage name "GB2312" is expired for more than ten years, it was repalced by "GBK" since windows95 <a class="ext-link" href="http://en.wikipedia.org/wiki/Code_Page_936"><span class="icon">​</span>http://en.wikipedia.org/wiki/Code_Page_936</a> <a class="ext-link" href="http://msdn.microsoft.com/en-US/goglobal/cc305153"><span class="icon">​</span>http://msdn.microsoft.com/en-US/goglobal/cc305153</a>, with alias "CP936","MS936" or "windows-936" <a class="ext-link" href="http://www.iana.org/assignments/charset-reg/GBK"><span class="icon">​</span>http://www.iana.org/assignments/charset-reg/GBK</a> . </p> <p> suggest to change it as follows: </p> <div class="wiki-code"><div class="code"><pre> <span class="p">{</span> <span class="s">&quot;gbk&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="p">{</span> <span class="s">&quot;cp936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="p">{</span> <span class="s">&quot;ms936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="c1">//.....</span> <span class="p">{</span> <span class="s">&quot;windows936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> </pre></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7386 Trac 1.4.3 JiaYanwei <jiaywe@…> Tue, 18 Sep 2012 09:58:23 GMT summary changed https://svn.boost.org/trac10/ticket/7386#comment:1 https://svn.boost.org/trac10/ticket/7386#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Bad windows encoding name - gb2312 (Simplified Chinese Codepage)</span> → <span class="trac-field-new">Bad windows codepage name - gb2312 (Simplified Chinese Codepage)</span> </li> </ul> Ticket JiaYanwei <jiaywe@…> Tue, 18 Sep 2012 10:04:10 GMT <link>https://svn.boost.org/trac10/ticket/7386#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7386#comment:2</guid> <description> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7386" title="#7386: Bugs: Bad windows codepage name - gb2312 (Simplified Chinese Codepage) (closed: fixed)">jiaywe@…</a>: </p> <blockquote class="citation"> <p> In wconv_codepage.ipp <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp</a>, line 57 </p> <div class="wiki-code"><div class="code"><pre> <span class="p">{</span> <span class="s">&quot;gb2312&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> </pre></div></div><p> the codepage name "GB2312" is expired for more than ten years, it was repalced by "GBK" since windows95 <a class="ext-link" href="http://en.wikipedia.org/wiki/Code_Page_936"><span class="icon">​</span>http://en.wikipedia.org/wiki/Code_Page_936</a> <a class="ext-link" href="http://msdn.microsoft.com/en-US/goglobal/cc305153"><span class="icon">​</span>http://msdn.microsoft.com/en-US/goglobal/cc305153</a>, with alias "CP936","MS936" or "windows-936" <a class="ext-link" href="http://www.iana.org/assignments/charset-reg/GBK"><span class="icon">​</span>http://www.iana.org/assignments/charset-reg/GBK</a> . </p> <p> suggest to change it as follows: </p> <div class="wiki-code"><div class="code"><pre> <span class="p">{</span> <span class="s">&quot;gbk&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="p">{</span> <span class="s">&quot;cp936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="p">{</span> <span class="s">&quot;ms936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> <span class="c1">//.....</span> <span class="p">{</span> <span class="s">&quot;windows936&quot;</span><span class="p">,</span> <span class="mi">936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> </pre></div></div></blockquote> <p> and the current codepage of "GB2312" is 20936, it can be added to the codepage table also: </p> <div class="wiki-code"><div class="code"><pre> <span class="p">{</span> <span class="s">&quot;gb2312&quot;</span><span class="p">,</span> <span class="mi">20936</span><span class="p">,</span> <span class="mi">0</span> <span class="p">},</span> </pre></div></div> </description> <category>Ticket</category> </item> <item> <dc:creator>Artyom Beilis</dc:creator> <pubDate>Fri, 21 Dec 2012 15:06:33 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7386#comment:3 https://svn.boost.org/trac10/ticket/7386#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/82152" title="Closing #7386 Applied recommeded changes ">[82152]</a> </p> Ticket Pharma83 Tue, 28 Jan 2014 13:07:41 GMT <link>https://svn.boost.org/trac10/ticket/7386#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7386#comment:4</guid> <description> </description> <category>Ticket</category> </item> <item> <dc:creator>Pharmd618</dc:creator> <pubDate>Tue, 28 Jan 2014 13:08:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7386#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7386#comment:5</guid> <description> </description> <category>Ticket</category> </item> </channel> </rss>