Modify

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#7386 closed Bugs (fixed)

Bad windows codepage name - gb2312 (Simplified Chinese Codepage)

Reported by: jiaywe@… Owned by: artyom
Milestone: To Be Determined Component: locale
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

In wconv_codepage.ipp http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp, line 57

      { "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:

      { "gbk",        936, 0 },
      { "cp936",      936, 0 },
      { "ms936",      936, 0 },
      //.....
      { "windows936",         936, 0 },

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by JiaYanwei <jiaywe@…>

  • Summary changed from Bad windows encoding name - gb2312 (Simplified Chinese Codepage) to Bad windows codepage name - gb2312 (Simplified Chinese Codepage)

comment:2 in reply to: ↑ description Changed 5 years ago by JiaYanwei <jiaywe@…>

Replying to jiaywe@…:

In wconv_codepage.ipp http://svn.boost.org/svn/boost/trunk/libs/locale/src/encoding/wconv_codepage.ipp, line 57

      { "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:

      { "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:

      { "gb2312",     20936, 0 },

comment:3 Changed 5 years ago by artyom

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in changeset [82152]

comment:4 Changed 3 years ago by Pharma83

Last edited 3 years ago by artyom (previous) (diff)

comment:5 Changed 3 years ago by Pharmd618

Last edited 3 years ago by artyom (previous) (diff)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain artyom.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.