CFStringConvertWindowsCodepageToEncoding 1251->1282, 1252-> same
CFStringConvertWindowsCodepageToEncoding 1251->1282, 1252-> same
- Subject: CFStringConvertWindowsCodepageToEncoding 1251->1282, 1252-> same
- From: Seth Delackner <email@hidden>
- Date: Thu, 19 Jun 2003 22:23:06 +0000
- Mail-followup-to: email@hidden
Windows code page 1252 is "Western European", aka Latin 1.
1251 is "Cyrillic".
These correspond to the CFStringEncodings:
kCFStringEncodingWindowsCyrillic = 0x0502, /* code page 1251, Slavic Cyrillic */
kCFStringEncodingWindowsLatin1 = 0x0500, /* ANSI codepage 1252 */
Yet the following gdb output clearly shows that the CF
mapping from Windows to CFStringEncoding is wrong, mapping
BOTH 1252 and 1251 to "Cyrillic".
I googled for any possible mention of this, but nothing came
up. This can't possibly be a proper "feature", since the
two encodings are not equivalent.
(gdb) print (int)CFStringConvertWindowsCodepageToEncoding(1251)
$4 = 1282
(gdb) print (int)CFStringConvertWindowsCodepageToEncoding(1252)
$5 = 1282
(gdb) print (int)CFStringConvertWindowsCodepageToEncoding(1253)
$6 = 1283
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.