diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-04-06 20:21:29 +0200 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2012-05-19 01:42:53 +0200 |
commit | 2d9c0bab540274e99480d965f38f266d20097976 (patch) | |
tree | e004fcdc65cd091521ca12575b82e672cc5908e3 /tools/codepage_tables.c | |
parent | 4a6b875eda8fe7827b8a55e42e48184a6588ee4c (diff) | |
download | rockbox-2d9c0bab540274e99480d965f38f266d20097976.tar.gz rockbox-2d9c0bab540274e99480d965f38f266d20097976.zip |
Add support for cp1252 (Western European) codepage.
In Europe Windows defaults to its own codepage cp1252 (also known as "WinLatin"
or "Windows-1252"). cp1252 adds some characters to ISO-8859-1.
Some mp3 tagging software on Windows uses cp1252 instead of ISO-8859-1. This
violates the ID3 specification, which requires tags to be ISO-8859-1 or
Unicode. However, similar violations are made for other codepages and supported
by Rockbox using the "Default Codepage" setting. Add support for cp1252 to
enable people using such broken tools to override the correct decoding to get
their tags displayed properly.
Change-Id: I9f2ec478afe2503e99ee8e6609416c92b0f453e0
Reviewed-on: http://gerrit.rockbox.org/209
Reviewed-by: Jens Arnold <amiconn@rockbox.org>
Tested-by: Jens Arnold <amiconn@rockbox.org>
Diffstat (limited to 'tools/codepage_tables.c')
-rw-r--r-- | tools/codepage_tables.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/codepage_tables.c b/tools/codepage_tables.c index 87e0da81a2..3f04c9df3e 100644 --- a/tools/codepage_tables.c +++ b/tools/codepage_tables.c | |||
@@ -57,6 +57,13 @@ const unsigned short cp1251_to_uni[] = { | |||
57 | 0x0451, 0x2116, 0x0454, 0x00BB, 0x0458, 0x0405, 0x0455, 0x0457 /* B8-BF */ | 57 | 0x0451, 0x2116, 0x0454, 0x00BB, 0x0458, 0x0405, 0x0455, 0x0457 /* B8-BF */ |
58 | }; | 58 | }; |
59 | 59 | ||
60 | const unsigned short cp1252_to_uni[] = { | ||
61 | 0x20AC, 0x00A0, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 80-87 */ | ||
62 | 0x0c26, 0x2030, 0x0160, 0x2039, 0x0152, 0x00a0, 0x017D, 0x00a0, /* 88-8F */ | ||
63 | 0x00A0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 90-97 */ | ||
64 | 0x02dc, 0x2122, 0x0161, 0x203A, 0x0153, 0x00a0, 0x017E, 0x0178 /* 98-9F */ | ||
65 | }; | ||
66 | |||
60 | const unsigned short cp1256_to_uni[] = { | 67 | const unsigned short cp1256_to_uni[] = { |
61 | 0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, | 68 | 0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, |
62 | 0x02C6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, | 69 | 0x02C6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, |