diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/unicode.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index eb0af7092c..f0f663f712 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c | |||
@@ -88,8 +88,6 @@ struct cp_info | |||
88 | const char *name; | 88 | const char *name; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | #ifdef HAVE_LCD_BITMAP | ||
92 | |||
93 | #define MAX_CP_TABLE_SIZE 32768 | 91 | #define MAX_CP_TABLE_SIZE 32768 |
94 | 92 | ||
95 | #define CPF_ISO "iso.cp" | 93 | #define CPF_ISO "iso.cp" |
@@ -118,27 +116,6 @@ static const struct cp_info cp_info[NUM_CODEPAGES+1] = | |||
118 | [UTF_8] = { CP_TID_NONE, NULL , "UTF-8" }, | 116 | [UTF_8] = { CP_TID_NONE, NULL , "UTF-8" }, |
119 | }; | 117 | }; |
120 | 118 | ||
121 | #else /* !HAVE_LCD_BITMAP, reduced support */ | ||
122 | |||
123 | #define MAX_CP_TABLE_SIZE 768 | ||
124 | |||
125 | #define CPF_ISOMINI "isomini.cp" | ||
126 | |||
127 | static const struct cp_info cp_info[NUM_CODEPAGES+1] = | ||
128 | { | ||
129 | [0 ... NUM_CODEPAGES] = { CP_TID_NONE, NULL , "unknown" }, | ||
130 | [ISO_8859_1] = { CP_TID_NONE, NULL , "ISO-8859-1" }, | ||
131 | [ISO_8859_7] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-7" }, | ||
132 | [WIN_1251] = { CP_TID_ISO , CPF_ISOMINI, "CP1251" }, | ||
133 | [ISO_8859_9] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-9" }, | ||
134 | [ISO_8859_2] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-2" }, | ||
135 | [WIN_1250] = { CP_TID_ISO , CPF_ISOMINI, "CP1250" }, | ||
136 | [WIN_1252] = { CP_TID_ISO , CPF_ISOMINI, "CP1252" }, | ||
137 | [UTF_8] = { CP_TID_ISO , NULL , "UTF-8" }, | ||
138 | }; | ||
139 | |||
140 | #endif /* HAVE_LCD_BITMAP */ | ||
141 | |||
142 | static int default_cp = INIT_CODEPAGE; | 119 | static int default_cp = INIT_CODEPAGE; |
143 | static int default_cp_tid = CP_TID_NONE; | 120 | static int default_cp_tid = CP_TID_NONE; |
144 | static int default_cp_handle = 0; | 121 | static int default_cp_handle = 0; |
@@ -368,7 +345,6 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, | |||
368 | ucs = table[tmp]; | 345 | ucs = table[tmp]; |
369 | break; | 346 | break; |
370 | 347 | ||
371 | #ifdef HAVE_LCD_BITMAP | ||
372 | case CP_TID_932: /* Japanese */ | 348 | case CP_TID_932: /* Japanese */ |
373 | if (*iso > 0xA0 && *iso < 0xE0) { | 349 | if (*iso > 0xA0 && *iso < 0xE0) { |
374 | tmp = *iso++ | (0xA100 - 0x8000); | 350 | tmp = *iso++ | (0xA100 - 0x8000); |
@@ -392,7 +368,6 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, | |||
392 | ucs = table[tmp]; | 368 | ucs = table[tmp]; |
393 | count--; | 369 | count--; |
394 | break; | 370 | break; |
395 | #endif /* HAVE_LCD_BITMAP */ | ||
396 | 371 | ||
397 | default: | 372 | default: |
398 | ucs = *iso++; | 373 | ucs = *iso++; |