summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2025-06-20 19:56:17 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2025-06-20 19:56:17 -0400
commitfa8402946a8ab82361b813735d9ded9267ed7b86 (patch)
tree72a8376052ee7fbf667afdc13f5dafa22943c4e7 /www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch
parentc7a5f709d1082c968116f06adcdf16dc7ffcff53 (diff)
downloadppo-fa8402946a8ab82361b813735d9ded9267ed7b86.tar.xz
chromium 139.0.7246.0 and cleanup
Diffstat (limited to 'www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch')
-rw-r--r--www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch b/www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch
deleted file mode 100644
index 50ada83..0000000
--- a/www-client/chromium/files/chromium-131-text_codec_icu-system-icu.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc b/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc
-index dfa1cb1369..ecffa654a2 100644
---- a/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc
-+++ b/third_party/blink/renderer/platform/wtf/text/text_codec_icu.cc
-@@ -323,7 +323,7 @@ void TextCodecICU::CreateICUConverter() const {
- DCHECK(!converter_icu_);
-
- #if defined(USING_SYSTEM_ICU)
-- const char* name = encoding_.GetName();
-+ const char* name = encoding_.GetName().Utf8().c_str();
- needs_gbk_fallbacks_ =
- name[0] == 'G' && name[1] == 'B' && name[2] == 'K' && !name[3];
- #endif
-@@ -448,7 +448,7 @@ String TextCodecICU::Decode(base::span<const uint8_t> data,
- // <http://bugs.webkit.org/show_bug.cgi?id=17014>
- // Simplified Chinese pages use the code A3A0 to mean "full-width space", but
- // ICU decodes it as U+E5E5.
-- if (!strcmp(encoding_.GetName(), "GBK")) {
-+ if (!strcmp(encoding_.GetName().Utf8().c_str(), "GBK")) {
- if (EqualIgnoringASCIICase(encoding_.GetName(), "gb18030"))
- resultString.Replace(0xE5E5, kIdeographicSpaceCharacter);
- // Make GBK compliant to the encoding spec and align with GB18030