This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Rename some "CPxxx" to "IBMxxx" (was Re: KOI8 character sets)


2009/8/25 Corinna Vinschen:
>> > Can the CP numbers be used directly? ÂYou set the charset for KOI8 to
>> > one of two CP values. ÂCan a user specify those numbers directly as
>> > they can for example, CP1258?
>>
>> I'd considered that but I think that "CP20866" and "CP21866" should
>> not be supported, because "KOI8-R" and "KOI8-U" are the official
>> IANA-registered names and the CP names likely wouldn't be recognised
>> when connecting to Unix hosts. Also, the CP equivalents of other
>> charsets, e.g. "CP936" for "GBK", aren't supported either.
>
> Btw., we should also replace the "CPxxx" specifiers for some of the
> charsets with "IBMxxx" as they are known on Linux. ÂThat's the case for
> codepages 437, 850, 852, 855, 857, 858, 862, 866, 874.
>
> Patch attached.

In that case, a few more changes might be needed actually. The Windows
"ANSI" codepages are officially known as e.g. 'windows-1252', and the
EUC charsets should have a hyphen: EUC-JP and EUC-KR.

Here's the full list: http://www.iana.org/assignments/character-sets

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]