File chromium-more-codec-aliases.patch of Package chromium
Index: src/third_party/WebKit/Source/WebCore/platform/text/TextCodecICU.cpp
===================================================================
--- src/third_party/WebKit/Source/WebCore/platform/text/TextCodecICU.cpp (revision 101168)
+++ src/third_party/WebKit/Source/WebCore/platform/text/TextCodecICU.cpp (working copy)
@@ -173,6 +173,24 @@
registrar("ISO8859-13", "ISO-8859-13");
registrar("ISO8859-14", "ISO-8859-14");
registrar("ISO8859-15", "ISO-8859-15");
+
+ // Also register ISO_8859-X variants
+ // These are valid per http://www.iana.org/assignments/character-sets
+ registrar("ISO_8859-1", "ISO-8859-1");
+ registrar("ISO_8859-2", "ISO-8859-2");
+ registrar("ISO_8859-3", "ISO-8859-3");
+ registrar("ISO_8859-4", "ISO-8859-4");
+ registrar("ISO_8859-5", "ISO-8859-5");
+ registrar("ISO_8859-6", "ISO-8859-6");
+ registrar("ISO_8859-7", "ISO-8859-7");
+ registrar("ISO_8859-8", "ISO-8859-8");
+ registrar("ISO_8859-8-I", "ISO-8859-8-I");
+ registrar("ISO_8859-9", "ISO-8859-9");
+ registrar("ISO_8859-10", "ISO-8859-10");
+ registrar("ISO_8859-13", "ISO-8859-13");
+ registrar("ISO_8859-14", "ISO-8859-14");
+ registrar("ISO_8859-15", "ISO-8859-15");
+
// Not registering ISO8859-16, because Firefox (as of version 3.6.6) doesn't know this particular alias,
// and because older versions of ICU don't support ISO-8859-16 encoding at all.
}