Ticket #1835: get_codepage_index.patch
File get_codepage_index.patch, 388 bytes (added by ASM, 15 years ago) |
---|
-
src/charsets.c
diff --git a/src/charsets.c b/src/charsets.c index c7d5941..a92eb0d 100644
a b get_codepage_index (const char *id) 149 149 int i; 150 150 if (strcmp (id, OTHER_8BIT) == 0) 151 151 return -1; 152 for (i = 0; codepages[i].id; ++i) 152 for (i = 0; i < n_codepages; i++) 153 153 if (strcmp (id, codepages[i].id) == 0) 154 154 return i; 155 155 return -1;