diff options
Diffstat (limited to 'firmware/common/unicode.c')
-rw-r--r-- | firmware/common/unicode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index 25d4a9129e..3ad63ee4fb 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c | |||
@@ -56,7 +56,7 @@ static const char * const filename[NUM_TABLES] = | |||
56 | 56 | ||
57 | static const char cp_2_table[NUM_CODEPAGES] = | 57 | static const char cp_2_table[NUM_CODEPAGES] = |
58 | { | 58 | { |
59 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0 | 59 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0 |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static const char * const name_codepages[NUM_CODEPAGES+1] = | 62 | static const char * const name_codepages[NUM_CODEPAGES+1] = |
@@ -70,6 +70,7 @@ static const char * const name_codepages[NUM_CODEPAGES+1] = | |||
70 | "ISO-8859-9", | 70 | "ISO-8859-9", |
71 | "ISO-8859-2", | 71 | "ISO-8859-2", |
72 | "CP1250", | 72 | "CP1250", |
73 | "CP1252", | ||
73 | "SJIS", | 74 | "SJIS", |
74 | "GB-2312", | 75 | "GB-2312", |
75 | "KSX-1001", | 76 | "KSX-1001", |
@@ -80,7 +81,7 @@ static const char * const name_codepages[NUM_CODEPAGES+1] = | |||
80 | 81 | ||
81 | #else /* !HAVE_LCD_BITMAP, reduced support */ | 82 | #else /* !HAVE_LCD_BITMAP, reduced support */ |
82 | 83 | ||
83 | #define MAX_CP_TABLE_SIZE 640 | 84 | #define MAX_CP_TABLE_SIZE 768 |
84 | #define NUM_TABLES 1 | 85 | #define NUM_TABLES 1 |
85 | 86 | ||
86 | static const char * const filename[NUM_TABLES] = { | 87 | static const char * const filename[NUM_TABLES] = { |
@@ -89,7 +90,7 @@ static const char * const filename[NUM_TABLES] = { | |||
89 | 90 | ||
90 | static const char cp_2_table[NUM_CODEPAGES] = | 91 | static const char cp_2_table[NUM_CODEPAGES] = |
91 | { | 92 | { |
92 | 0, 1, 1, 1, 1, 1, 0 | 93 | 0, 1, 1, 1, 1, 1, 1, 0 |
93 | }; | 94 | }; |
94 | 95 | ||
95 | static const char * const name_codepages[NUM_CODEPAGES+1] = | 96 | static const char * const name_codepages[NUM_CODEPAGES+1] = |
@@ -100,6 +101,7 @@ static const char * const name_codepages[NUM_CODEPAGES+1] = | |||
100 | "ISO-8859-9", | 101 | "ISO-8859-9", |
101 | "ISO-8859-2", | 102 | "ISO-8859-2", |
102 | "CP1250", | 103 | "CP1250", |
104 | "CP1252", | ||
103 | "UTF-8", | 105 | "UTF-8", |
104 | "unknown" | 106 | "unknown" |
105 | }; | 107 | }; |
@@ -190,6 +192,7 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, | |||
190 | /* cp tells us which codepage to convert from */ | 192 | /* cp tells us which codepage to convert from */ |
191 | switch (cp) { | 193 | switch (cp) { |
192 | case ISO_8859_7: /* Greek */ | 194 | case ISO_8859_7: /* Greek */ |
195 | case WIN_1252: /* Western European */ | ||
193 | case WIN_1251: /* Cyrillic */ | 196 | case WIN_1251: /* Cyrillic */ |
194 | case ISO_8859_9: /* Turkish */ | 197 | case ISO_8859_9: /* Turkish */ |
195 | case ISO_8859_2: /* Latin Extended */ | 198 | case ISO_8859_2: /* Latin Extended */ |