diff options
Diffstat (limited to 'tools/codepages.c')
-rw-r--r-- | tools/codepages.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/codepages.c b/tools/codepages.c index 651a99c429..75441f2493 100644 --- a/tools/codepages.c +++ b/tools/codepages.c | |||
@@ -138,7 +138,17 @@ unsigned short iso_decode(unsigned char *latin1, int cp, int count) | |||
138 | ucs = iso8859_2_to_uni[*latin1++ - 0xA1]; | 138 | ucs = iso8859_2_to_uni[*latin1++ - 0xA1]; |
139 | } | 139 | } |
140 | break; | 140 | break; |
141 | 141 | ||
142 | case 0x08: /* Central European (CP1250) */ | ||
143 | while (count--) { | ||
144 | /* first convert to unicode */ | ||
145 | if (*latin1 < 0x80) | ||
146 | ucs = *latin1++; | ||
147 | else | ||
148 | ucs = cp1250_to_uni[*latin1++ - 0x80]; | ||
149 | } | ||
150 | break; | ||
151 | |||
142 | default: | 152 | default: |
143 | break; | 153 | break; |
144 | } | 154 | } |
@@ -211,7 +221,7 @@ int main(int argc, char **argv) | |||
211 | of = fopen("iso.cp", "wb"); | 221 | of = fopen("iso.cp", "wb"); |
212 | if (!of) return 1; | 222 | if (!of) return 1; |
213 | 223 | ||
214 | for (i=1; i<8; i++) { | 224 | for (i=1; i<9; i++) { |
215 | 225 | ||
216 | for (j=0; j<128; j++) { | 226 | for (j=0; j<128; j++) { |
217 | k = (unsigned char)j + 128; | 227 | k = (unsigned char)j + 128; |