mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
FS#7712 by Przemysław Hołubowski: New codepage (CP1250 - WIN1250) added
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14942 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8753ffdaa
commit
ded94e69c4
9 changed files with 78 additions and 16 deletions
|
@ -138,7 +138,17 @@ unsigned short iso_decode(unsigned char *latin1, int cp, int count)
|
|||
ucs = iso8859_2_to_uni[*latin1++ - 0xA1];
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case 0x08: /* Central European (CP1250) */
|
||||
while (count--) {
|
||||
/* first convert to unicode */
|
||||
if (*latin1 < 0x80)
|
||||
ucs = *latin1++;
|
||||
else
|
||||
ucs = cp1250_to_uni[*latin1++ - 0x80];
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -211,7 +221,7 @@ int main(int argc, char **argv)
|
|||
of = fopen("iso.cp", "wb");
|
||||
if (!of) return 1;
|
||||
|
||||
for (i=1; i<8; i++) {
|
||||
for (i=1; i<9; i++) {
|
||||
|
||||
for (j=0; j<128; j++) {
|
||||
k = (unsigned char)j + 128;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue