summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-10-02 07:25:24 +0000
committerJens Arnold <amiconn@rockbox.org>2007-10-02 07:25:24 +0000
commit227181deb0be5de2ddcf0d28f057f4175dc051b9 (patch)
tree190ebe98ffb3fbff179b3c06dd137ee933034a2c
parentf463a44adfe6205e99a9699da9ea3982c55a4ef4 (diff)
downloadrockbox-227181deb0be5de2ddcf0d28f057f4175dc051b9.tar.gz
rockbox-227181deb0be5de2ddcf0d28f057f4175dc051b9.zip
Make codepage Win-1250 actually work on charcell.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14946 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/common/unicode.c2
-rw-r--r--tools/codepages.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c
index ba28edd15a..2d11a38845 100644
--- a/firmware/common/unicode.c
+++ b/firmware/common/unicode.c
@@ -47,7 +47,7 @@ static const char cp_2_table[NUM_CODEPAGES] =
47 47
48#else /* !HAVE_LCD_BITMAP, reduced support */ 48#else /* !HAVE_LCD_BITMAP, reduced support */
49 49
50#define MAX_CP_TABLE_SIZE 512 50#define MAX_CP_TABLE_SIZE 640
51#define NUM_TABLES 1 51#define NUM_TABLES 1
52 52
53enum { 53enum {
diff --git a/tools/codepages.c b/tools/codepages.c
index 75441f2493..07d95111de 100644
--- a/tools/codepages.c
+++ b/tools/codepages.c
@@ -23,8 +23,8 @@
23 23
24#define MAX_TABLE_SIZE 32768 24#define MAX_TABLE_SIZE 32768
25 25
26static const int mini_index[5] = { 26static const int mini_index[6] = {
27 0, 1, 3, 6, 7 27 0, 1, 3, 6, 7, 8
28}; 28};
29 29
30static unsigned short iso_table[MAX_TABLE_SIZE]; 30static unsigned short iso_table[MAX_TABLE_SIZE];
@@ -207,7 +207,7 @@ int main(int argc, char **argv)
207 of = fopen("isomini.cp", "wb"); 207 of = fopen("isomini.cp", "wb");
208 if (!of) return 1; 208 if (!of) return 1;
209 209
210 for (i=1; i<5; i++) { 210 for (i=1; i<6; i++) {
211 211
212 for (j=0; j<128; j++) { 212 for (j=0; j<128; j++) {
213 k = (unsigned char)j + 128; 213 k = (unsigned char)j + 128;