File: 0001-adding-CJK-ideograph-to-isalpha.patch

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (34 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From c7a56e4a83600719e7caf7c4eb7a825d27e198e3 Mon Sep 17 00:00:00 2001
From: mcrouse <mcrouse@google.com>
Date: Wed, 3 Mar 2021 17:57:52 -0800
Subject: [PATCH] adding CJK ideograph to isalpha

---
 third_party/utf/src/runetype/isalpharune.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/third_party/utf/src/runetype/isalpharune.c b/third_party/utf/src/runetype/isalpharune.c
index 901433d2e056..2be409b902cc 100644
--- a/third_party/utf/src/runetype/isalpharune.c
+++ b/third_party/utf/src/runetype/isalpharune.c
@@ -48,8 +48,6 @@ static Rune singles[][1] = {
 	{ 0x2E2F },
 	{ 0x3400 },
 	{ 0x4DB5 },
-	{ 0x4E00 },
-	{ 0x9FD5 },
 	{ 0xA9CF },
 	{ 0xAA7A },
 	{ 0xAC00 },
@@ -305,6 +303,8 @@ static Rune ranges[][2] = {
 	{ 0x3131, 0x318E },
 	{ 0x31A0, 0x31BA },
 	{ 0x31F0, 0x31FF },
+    // Added manually to handle CJK ideographs, see crbug/1184370
+	{ 0x4E00, 0x9FD5 },
 	{ 0xA000, 0xA48C },
 	{ 0xA4D0, 0xA4FD },
 	{ 0xA500, 0xA60C },
-- 
2.30.1.766.gb4fecdf3b7-goog