Re: [Boost-bugs] [Boost C++ Libraries] #7386: Bad windows codepage name - gb2312 (Simplified Chinese Codepage)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7386: Bad windows codepage name - gb2312 (Simplified Chinese Codepage)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-18 10:04:10


#7386: Bad windows codepage name - gb2312 (Simplified Chinese Codepage)
--------------------------------------+-------------------------------------
  Reporter: jiaywe@… | Owner: artyom
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: locale
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by JiaYanwei <jiaywe@…>):

 Replying to [ticket:7386 jiaywe@…]:
> In wconv_codepage.ipp
 [http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp],
 line 57
> {{{#!C++
> { "gb2312", 936, 0 },
> }}}
> the codepage name "GB2312" is expired for more than ten years, it was
 repalced by "GBK" since windows95
 [http://en.wikipedia.org/wiki/Code_Page_936] [http://msdn.microsoft.com
 /en-US/goglobal/cc305153], with alias "CP936","MS936" or "windows-936"
 [http://www.iana.org/assignments/charset-reg/GBK] .
>
> suggest to change it as follows:
> {{{#!C++
> { "gbk", 936, 0 },
> { "cp936", 936, 0 },
> { "ms936", 936, 0 },
> //.....
> { "windows936", 936, 0 },
> }}}

 and the current codepage of "GB2312" is 20936, it can be added to the
 codepage table also:
 {{{#!C++
       { "gb2312", 20936, 0 },
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7386#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC