aboutsummaryrefslogtreecommitdiffstats
path: root/testing/firefox/allow-utf8-fallback.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/firefox/allow-utf8-fallback.patch')
-rw-r--r--testing/firefox/allow-utf8-fallback.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/firefox/allow-utf8-fallback.patch b/testing/firefox/allow-utf8-fallback.patch
new file mode 100644
index 0000000000..d283d60422
--- /dev/null
+++ b/testing/firefox/allow-utf8-fallback.patch
@@ -0,0 +1,16 @@
+Allow user to actually set UTF-8 as the fallback charset.
+
+This is to allow UTF-8 as default for text/plain
+
+--- ./dom/encoding/FallbackEncoding.cpp.orig
++++ ./dom/encoding/FallbackEncoding.cpp
+@@ -55,8 +55,7 @@
+ // Don't let the user break things by setting the override to unreasonable
+ // values via about:config
+ if (!EncodingUtils::FindEncodingForLabel(override, mFallback) ||
+- !EncodingUtils::IsAsciiCompatible(mFallback) ||
+- mFallback.EqualsLiteral("UTF-8")) {
++ !EncodingUtils::IsAsciiCompatible(mFallback)) {
+ mFallback.Truncate();
+ }
+