New: nls_cp936.c is not synchronized with M$'s translation table
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · OGAWA Hirofumi
Quoted 8 lines · Andries Brouwer
Quoted 4 lines · Andrew Morton
The
nls_cp936.cis not synchronized with MS's translation table, there are some characters have different code from the code in updated table of MS. For example, the unicode for character0xB8A3(GBK) should be U+798F, but the code is U+FA1B innls_cp936.c.OK - regenerated the tables.
Quoted 8 lines
Review static wchar_t c2u_FA[256] = { · line 1499
Quoted 3 lines
(quoted diff) +1
-1@@ -1510,13 +1499,13 @@ static wchar_t c2u_FA[256] = { - 0x2166,0x2167,0x2168,0x2169,0x0000,0xFFE4,0xFF07,0xFF02,/* 0x50-0x57 */ + 0x2166,0x2167,0x2168,0x2169,0xFFE2,0xFFE4,0xFF07,0xFF02,/* 0x50-0x57 */Microsoft is using this, and some other vendor is using
0x00AC. The both of those char code is valid for fatfs...Anyway, this patch looks good to me.
Let me cc the submitter of the bug report and linux-kernel.
Below a description of the changes in the four code pages 932, 936, 949, 950. (They have been aligned to current Microsoft tables.)
Andries
nls_cp932.c:
0x0000 -> 0xFFE2 FULL WIDTH NOT SIGN
Was already present as 0x81CA and 0xEEF9.
Now also at 0xFA54.
nls_cp936.c:
0x2218 -> 0x00B0 RING OPERATOR -> DEGREE SIGN
CJK Compatibility ideographs replaced by corresponding ordinary symbol.
0xF900 -> 0x8C480xF901 -> 0x66F40xF902 -> 0x8ECA0xF903 -> 0x8CC80xF904 -> 0x6ED10xF905 -> 0x4E320xF906 -> 0x53E50xF908 -> 0x9F9C0xF909 -> 0x59510xF90A -> 0x91D10xF90B -> 0x55870xF90C -> 0x59480xF90D -> 0x61F60xF90E -> 0x76690xF90F -> 0x7F850xF910 -> 0x863F0xF911 -> 0x87BA0xF912 -> 0x88F80xF913 -> 0x908F0xF915 -> 0x6D1B0xF916 -> 0x70D90xF917 -> 0x73DE0xF918 -> 0x843D0xF919 -> 0x916A0xF91A -> 0x99F10xF91B -> 0x4E820xF91C -> 0x53750xF91D -> 0x6B040xF91E -> 0x721B0xF91F -> 0x862D0xF920 -> 0x9E1E0xF921 -> 0x5D500xF922 -> 0x6FEB0xF923 -> 0x85CD0xF924 -> 0x89640xF925 -> 0x62C90xF926 -> 0x81D80xF927 -> 0x881F0xF928 -> 0x5ECA0xF929 -> 0x67170xF92A -> 0x6D6A0xF92B -> 0x72FC0xF92D -> 0x4F860xF92E -> 0x51B70xF92F -> 0x52DE0xF930 -> 0x64C40xF931 -> 0x6AD30xF932 -> 0x72100xF933 -> 0x76E70xF934 -> 0x80010xF935 -> 0x86060xF936 -> 0x865C0xF937 -> 0x8DEF0xF938 -> 0x97320xF939 -> 0x9B6F0xF93A -> 0x9DFA0xF93B -> 0x788C0xF93C -> 0x797F0xF93D -> 0x7DA00xF93E -> 0x83C90xF93F -> 0x93040xF940 -> 0x9E7F0xF941 -> 0x8AD60xF942 -> 0x58DF0xF943 -> 0x5F040xF944 -> 0x7C600xF945 -> 0x807E0xF946 -> 0x72620xF947 -> 0x78CA0xF948 -> 0x8CC20xF949 -> 0x96F70xF94A -> 0x58D80xF94B -> 0x5C620xF94C -> 0x6A130xF94D -> 0x6DDA0xF94E -> 0x6F0F0xF94F -> 0x7D2F0xF950 -> 0x7E370xF951 -> 0x964B0xF952 -> 0x52D20xF953 -> 0x808B0xF954 -> 0x51DC0xF955 -> 0x51CC0xF956 -> 0x7A1C0xF957 -> 0x7DBE0xF958 -> 0x83F10xF959 -> 0x96750xF95A -> 0x8B800xF95B -> 0x62CF0xF95D -> 0x8AFE0xF95E -> 0x4E390xF960 -> 0x60120xF962 -> 0x75700xF963 -> 0x53170xF964 -> 0x78FB0xF965 -> 0x4FBF0xF966 -> 0x5FA90xF967 -> 0x4E0D0xF968 -> 0x6CCC0xF969 -> 0x65780xF96A -> 0x7D220xF96B -> 0x53C30xF96C -> 0x585E0xF96D -> 0x77010xF96E -> 0x84490xF970 -> 0x6BBA0xF971 -> 0x8FB00xF972 -> 0x6C880xF973 -> 0x62FE0xF974 -> 0x82E50xF975 -> 0x63A00xF976 -> 0x75650xF977 -> 0x4EAE0xF978 -> 0x51690xF97A -> 0x68810xF97B -> 0x7CE70xF97C -> 0x826F0xF97D -> 0x8AD20xF97E -> 0x91CF0xF97F -> 0x52F50xF980 -> 0x54420xF981 -> 0x59730xF982 -> 0x5EEC0xF983 -> 0x65C50xF984 -> 0x6FFE0xF985 -> 0x792A0xF986 -> 0x95AD0xF987 -> 0x9A6A0xF988 -> 0x9E970xF989 -> 0x9ECE0xF98A -> 0x529B0xF98B -> 0x66C60xF98C -> 0x6B770xF98D -> 0x8F620xF98E -> 0x5E740xF98F -> 0x61900xF990 -> 0x62000xF991 -> 0x649A0xF992 -> 0x6F230xF993 -> 0x71490xF994 -> 0x74890xF996 -> 0x7DF40xF997 -> 0x806F0xF998 -> 0x8F260xF999 -> 0x84EE0xF99A -> 0x90230xF99B -> 0x934A0xF99C -> 0x52170xF99D -> 0x52A30xF99E -> 0x54BD0xF99F -> 0x70C80xF9A0 -> 0x88C20xF9A1 -> 0x8AAA0xF9A2 -> 0x5EC90xF9A3 -> 0x5FF50xF9A4 -> 0x637B0xF9A5 -> 0x6BAE0xF9A6 -> 0x7C3E0xF9A7 -> 0x73750xF9A8 -> 0x4EE40xF9A9 -> 0x56F90xF9AA -> 0x5BE70xF9AB -> 0x5DBA0xF9AC -> 0x601C0xF9AD -> 0x73B20xF9AE -> 0x74690xF9AF -> 0x7F9A0xF9B0 -> 0x80460xF9B1 -> 0x92340xF9B2 -> 0x96F60xF9B3 -> 0x97480xF9B4 -> 0x98180xF9B5 -> 0x4F8B0xF9B6 -> 0x79AE0xF9B7 -> 0x91B40xF9B8 -> 0x96B80xF9B9 -> 0x60E10xF9BA -> 0x4E860xF9BB -> 0x50DA0xF9BC -> 0x5BEE0xF9BD -> 0x5C3F0xF9BE -> 0x65990xF9BF -> 0x6A020xF9C0 -> 0x71CE0xF9C1 -> 0x76420xF9C2 -> 0x84FC0xF9C3 -> 0x907C0xF9C4 -> 0x9F8D0xF9C5 -> 0x66880xF9C6 -> 0x962E0xF9C7 -> 0x52890xF9C8 -> 0x677B0xF9C9 -> 0x67F30xF9CA -> 0x6D410xF9CB -> 0x6E9C0xF9CC -> 0x74090xF9CD -> 0x75590xF9CE -> 0x786B0xF9CF -> 0x7D100xF9D0 -> 0x985E0xF9D1 -> 0x516D0xF9D2 -> 0x622E0xF9D3 -> 0x96780xF9D4 -> 0x502B0xF9D5 -> 0x5D190xF9D6 -> 0x6DEA0xF9D7 -> 0x8F2A0xF9D8 -> 0x5F8B0xF9D9 -> 0x61440xF9DA -> 0x68170xF9DB -> 0x73870xF9DC -> 0x96860xF9DD -> 0x52290xF9DE -> 0x540F0xF9DF -> 0x5C650xF9E0 -> 0x66130xF9E1 -> 0x674E0xF9E2 -> 0x68A80xF9E3 -> 0x6CE50xF9E4 -> 0x74060xF9E5 -> 0x75E20xF9E6 -> 0x7F790xF9E8 -> 0x88E10xF9E9 -> 0x91CC0xF9EA -> 0x96E20xF9EB -> 0x533F0xF9EC -> 0x6EBA0xF9ED -> 0x541D0xF9EE -> 0x71D00xF9EF -> 0x74980xF9F0 -> 0x85FA0xF9F2 -> 0x9C570xF9F3 -> 0x9E9F0xF9F4 -> 0x67970xF9F5 -> 0x6DCB0xF9F6 -> 0x81E80xF9F7 -> 0x7ACB0xF9F8 -> 0x7B200xF9F9 -> 0x7C920xF9FA -> 0x72C00xF9FB -> 0x70990xF9FC -> 0x8B580xF9FD -> 0x4EC00xF9FE -> 0x83360xF9FF -> 0x523A0xFA00 -> 0x52070xFA01 -> 0x5EA60xFA02 -> 0x62D30xFA03 -> 0x7CD60xFA04 -> 0x5B850xFA05 -> 0x6D1E0xFA06 -> 0x66B40xFA07 -> 0x8F3B0xFA08 -> 0x884C0xFA09 -> 0x964D0xFA0A -> 0x898B0xFA0B -> 0x5ED30xFA10 -> 0x585A0xFA12 -> 0x66740xFA15 -> 0x51DE0xFA16 -> 0x8C6C expected: 732A, but that code already occurs elsewhere 0xFA17 -> 0x76CA0xFA19 -> 0x795E0xFA1A -> 0x79650xFA1B -> 0x798F0xFA1C -> 0x97560xFA1D -> 0x7CBE0xFA1E -> 0x7FBD0xFA22 -> 0x8AF80xFA25 -> 0x90380xFA26 -> 0x90FD0xFA2A -> 0x98EF0xFA2B -> 0x98FC0xFA2C -> 0x99280xFA2D -> 0x9DB4
nls_cp949.c;
New:
0x0000 -> 0x20AC EURO SIGN0x0000 -> 0x00AE REGISTERED SIGN
Halfwidth Hangul replaced by corresponding ordinary symbols.
0xFFA1...0xFFBE (30), 0xFFC2...0xFFC7 (6), 0xFFCA-0xFFCF (6), 0xFFD2...0xFFD7 (6), 0xFFDA-0xFFDC (3), 0xFFA0 (1) ->
0x3131...0x3164 (52)
More CJK Compatibility ideographs replaced.
0xFA0C -> 0x51400xFA10 -> 0x585A0xFA12 -> 0x66740xFA15 -> 0x51DE0xFA17 -> 0x76CA0xFA19 -> 0x795E0xFA1A -> 0x79650xFA1B -> 0x798F0xFA1C -> 0x97560xFA1D -> 0x7CBE0xFA1E -> 0x7FBD0xFA22 -> 0x8AF80xFA25 -> 0x90380xFA26 -> 0x90FD0xFA2A -> 0x98EF0xFA2B -> 0x98FC0xFA2C -> 0x99280xFA2D -> 0x9DB4
nls_cp950.c:
New
0x0000 -> 0x20AC0x0000 -> 0x25500x0000 -> 0x255E0x0000 -> 0x25610x0000 -> 0x256A0x0000 -> 0x256D0x0000 -> 0x256E0x0000 -> 0x256F0x0000 -> 0x25700x0000 -> 0x53410x0000 -> 0x5345
Misc corrections
0x0305 -> 0x00AF0x2024 -> 0x02D90x2218 -> 0x00B00x2263 -> 0x22610x2609 -> 0x22990x2641 -> 0x2295
CJK Compatibility ideographs replaced by corresponding ordinary symbol. (Same changes as above on 0xF900-0xFA2D.)
Some fullwidth forms replaced by other forms
0xFF02 -> 0x201D0xFF07 -> 0x20190xFF3B -> 0x30140xFF3D -> 0x30150xFF3E -> 0xFE3F0xFF40 -> 0x20180xFF64 -> 0xFE51