diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-01 08:44:50 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-01 11:34:22 +0200 |
| commit | 8aad5847f94c2b06580d60784f97e393b57ce120 (patch) | |
| tree | 1d0e4dcb6cd97bddacd3f9640c98eb78896e1eae /testing/firefox/allow-utf8-fallback.patch | |
| parent | 4c1f42a5423b37d9c20f41c056bb72e883a18bef (diff) | |
| download | aports-8aad5847f94c2b06580d60784f97e393b57ce120.tar.bz2 aports-8aad5847f94c2b06580d60784f97e393b57ce120.tar.xz | |
testing/firefox: allow set utf-8 as fallback
We want let user be able to set utf-8 as fallback so text/plain works
properly.
Diffstat (limited to 'testing/firefox/allow-utf8-fallback.patch')
| -rw-r--r-- | testing/firefox/allow-utf8-fallback.patch | 16 |
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(); + } + |
