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

package info (click to toggle)
qt6-webengine 6.9.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,111,396 kB
  • sloc: cpp: 21,436,007; ansic: 8,086,803; javascript: 2,747,888; python: 856,612; asm: 848,149; xml: 616,344; java: 222,847; sh: 105,206; objc: 99,183; perl: 70,870; cs: 51,103; sql: 40,087; makefile: 26,374; pascal: 25,140; fortran: 24,137; tcl: 9,609; yacc: 8,132; php: 7,051; lisp: 3,462; lex: 1,327; ruby: 914; awk: 339; csh: 120; 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