diff options
Diffstat (limited to 'firmware/common/unicode.c')
-rw-r--r-- | firmware/common/unicode.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index 2417b016d0..ba28edd15a 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c | |||
@@ -29,7 +29,7 @@ static int loaded_cp_table = 0; | |||
29 | 29 | ||
30 | enum { | 30 | enum { |
31 | ISO_8859_1 = 0, ISO_8859_7, ISO_8859_8, WIN_1251, | 31 | ISO_8859_1 = 0, ISO_8859_7, ISO_8859_8, WIN_1251, |
32 | ISO_8859_11, WIN_1256, ISO_8859_9, ISO_8859_2, | 32 | ISO_8859_11, WIN_1256, ISO_8859_9, ISO_8859_2, WIN_1250, |
33 | SJIS, GB_2312, KSX_1001, BIG_5, UTF_8, NUM_CODEPAGES | 33 | SJIS, GB_2312, KSX_1001, BIG_5, UTF_8, NUM_CODEPAGES |
34 | }; | 34 | }; |
35 | static const char *filename[NUM_TABLES] = | 35 | static const char *filename[NUM_TABLES] = |
@@ -42,7 +42,7 @@ static const char *filename[NUM_TABLES] = | |||
42 | }; | 42 | }; |
43 | static const char cp_2_table[NUM_CODEPAGES] = | 43 | static const char cp_2_table[NUM_CODEPAGES] = |
44 | { | 44 | { |
45 | 0, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0 | 45 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0 |
46 | }; | 46 | }; |
47 | 47 | ||
48 | #else /* !HAVE_LCD_BITMAP, reduced support */ | 48 | #else /* !HAVE_LCD_BITMAP, reduced support */ |
@@ -51,8 +51,8 @@ static const char cp_2_table[NUM_CODEPAGES] = | |||
51 | #define NUM_TABLES 1 | 51 | #define NUM_TABLES 1 |
52 | 52 | ||
53 | enum { | 53 | enum { |
54 | ISO_8859_1 = 0, ISO_8859_7, WIN_1251, | 54 | ISO_8859_1 = 0, ISO_8859_7, WIN_1251, ISO_8859_9, |
55 | ISO_8859_9, ISO_8859_2, UTF_8, NUM_CODEPAGES | 55 | ISO_8859_2, WIN_1250, UTF_8, NUM_CODEPAGES |
56 | }; | 56 | }; |
57 | static const char *filename[NUM_TABLES] = | 57 | static const char *filename[NUM_TABLES] = |
58 | { | 58 | { |
@@ -60,7 +60,7 @@ static const char *filename[NUM_TABLES] = | |||
60 | }; | 60 | }; |
61 | static const char cp_2_table[NUM_CODEPAGES] = | 61 | static const char cp_2_table[NUM_CODEPAGES] = |
62 | { | 62 | { |
63 | 0, 1, 1, 1, 1, 0 | 63 | 0, 1, 1, 1, 1, 1, 0 |
64 | }; | 64 | }; |
65 | 65 | ||
66 | #endif | 66 | #endif |
@@ -152,6 +152,7 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, | |||
152 | case WIN_1251: /* Cyrillic */ | 152 | case WIN_1251: /* Cyrillic */ |
153 | case ISO_8859_9: /* Turkish */ | 153 | case ISO_8859_9: /* Turkish */ |
154 | case ISO_8859_2: /* Latin Extended */ | 154 | case ISO_8859_2: /* Latin Extended */ |
155 | case WIN_1250: /* Central European */ | ||
155 | #ifdef HAVE_LCD_BITMAP | 156 | #ifdef HAVE_LCD_BITMAP |
156 | case ISO_8859_8: /* Hebrew */ | 157 | case ISO_8859_8: /* Hebrew */ |
157 | case ISO_8859_11: /* Thai */ | 158 | case ISO_8859_11: /* Thai */ |