Bug 799910 - Fix ASCII range of EUC-KR and Big5 converters. r=smontagu

This commit is contained in:
Masatoshi Kimura 2012-10-16 21:34:03 -04:00
Родитель 7b466c7726
Коммит 951e211345
13 изменённых файлов: 14 добавлений и 25 удалений

Просмотреть файл

@ -345,9 +345,6 @@ test(
continue;
if (encoding === "iso-2022-kr" && (i === 0x0E || i === 0x0F || i === 0x1B))
continue;
// TODO: Gecko decoder bugs
if ((encoding === "big5" || encoding === "euc-kr") && i === 0x7F)
continue;
string += String.fromCharCode(i);
bytes.push(i);

Просмотреть файл

@ -486,10 +486,6 @@ const uint16_t g_ufBig5HKSCSMapping[] = {
#include "hkscs.uf"
};
const uint16_t g_ASCIIMapping[] = {
0x0001, 0x0004, 0x0005, 0x0008, 0x0000, 0x0000, 0x007F, 0x0000
};
const uint16_t g_utBig5HKSCSMapping[] = {
#include "hkscs.ut"
};
@ -503,10 +499,6 @@ const uint16_t g_ufKSC5601Mapping[] = {
#include "u20kscgl.uf"
};
const uint16_t g_ucvko_AsciiMapping[] = {
0x0001, 0x0004, 0x0005, 0x0008, 0x0000, 0x0000, 0x007F, 0x0000
};
const uint16_t g_HangulNullMapping[] ={
0x0001, 0x0004, 0x0005, 0x0008, 0x0000, 0xAC00, 0xD7A3, 0xAC00
};

Просмотреть файл

@ -28,7 +28,7 @@ static const uint16_t g_utCP949NoKSCHangulMapping[] = {
};
static const uRange g_CP949Ranges[] = {
{ 0x00, 0x7E },
{ 0x00, 0x7F },
{ 0xA4, 0xA4 }, // 8byte seq. for Hangul syllables not available
// in pre-composed form in KS X 1001
{ 0xA1, 0xFE },
@ -37,7 +37,7 @@ static const uRange g_CP949Ranges[] = {
};
static const uint16_t *g_CP949MappingTableSet [] ={
g_ucvko_AsciiMapping,
g_ASCIIMappingTable,
g_HangulNullMapping,
g_utKSC5601Mapping,
g_utCP949NoKSCHangulMapping,

Просмотреть файл

@ -31,7 +31,7 @@ static const uint16_t g_utJohabJamoMapping[] ={
};
static const uint16_t *g_JOHABMappingTableSet [] ={
g_ucvko_AsciiMapping,
g_ASCIIMappingTable,
g_HangulNullMapping,
g_utJohabJamoMapping,
g_utKSC5601Mapping,

Просмотреть файл

@ -10,7 +10,7 @@
extern const uint16_t g_utKSC5601Mapping[];
extern const uint16_t g_ufKSC5601Mapping[];
extern const uint16_t g_ucvko_AsciiMapping[];
extern const uint16_t g_ASCIIMappingTable[];
extern const uint16_t g_HangulNullMapping[];
extern const uint16_t g_ufJohabJamoMapping[];

Просмотреть файл

@ -20,7 +20,7 @@ static const uint16_t g_ufCP949NoKSCHangulMapping[] = {
static const uint16_t *g_CP949MappingTable[3] = {
g_ucvko_AsciiMapping,
g_ASCIIMappingTable,
g_ufKSC5601Mapping,
g_ufCP949NoKSCHangulMapping
};

Просмотреть файл

@ -12,7 +12,7 @@
static const uint16_t *g_EUCKRMappingTable[3] = {
g_ucvko_AsciiMapping,
g_ASCIIMappingTable,
g_ufKSC5601Mapping,
g_HangulNullMapping
};

Просмотреть файл

@ -11,7 +11,7 @@
// Global functions and data [declaration]
static const uint16_t *g_JohabMappingTable[4] = {
g_ucvko_AsciiMapping,
g_ASCIIMappingTable,
g_HangulNullMapping,
g_ufJohabJamoMapping,
g_ufKSC5601Mapping

Просмотреть файл

@ -20,7 +20,7 @@ static const uScanClassID g_BIG5HKSCSScanClassIDs[] = {
};
static const uint16_t *g_BIG5HKSCSMappingTableSet [] ={
g_ASCIIMapping,
g_ASCIIMappingTable,
g_utBig5HKSCSMapping,
g_utBIG5Mapping,
g_utBig5HKSCSMapping,
@ -29,7 +29,7 @@ static const uint16_t *g_BIG5HKSCSMappingTableSet [] ={
};
static const uRange g_BIG5HKSCSRanges[] = {
{ 0x00, 0x7E },
{ 0x00, 0x7F },
{ 0x81, 0xA0 },
{ 0xA1, 0xC6 },
{ 0xC6, 0xC8 },

Просмотреть файл

@ -16,12 +16,12 @@ static const uScanClassID g_BIG5ScanClassIDs[] = {
};
static const uint16_t *g_BIG5MappingTableSet [] ={
g_ASCIIMapping,
g_ASCIIMappingTable,
g_utBIG5Mapping
};
static const uRange g_BIG5Ranges[] = {
{ 0x00, 0x7E },
{ 0x00, 0x7F },
{ 0x81, 0xFE }
};

Просмотреть файл

@ -10,7 +10,7 @@
extern const uint16_t g_ufBig5Mapping[];
extern const uint16_t g_utBIG5Mapping[];
extern const uint16_t g_ASCIIMapping[];
extern const uint16_t g_ASCIIMappingTable[];
extern const uint16_t g_ufBig5HKSCSMapping[];
extern const uint16_t g_utBig5HKSCSMapping[];

Просмотреть файл

@ -12,7 +12,7 @@
static const uint16_t *g_Big5MappingTable[2] = {
g_ASCIIMapping,
g_ASCIIMappingTable,
g_ufBig5Mapping
};

Просмотреть файл

@ -12,7 +12,7 @@
static const uint16_t *g_Big5HKSCSMappingTable[] = {
g_ASCIIMapping,
g_ASCIIMappingTable,
g_ufBig5Mapping,
g_ufBig5HKSCSMapping
};