public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt
@ 2023-09-16 7:22 Mike Fabian
0 siblings, 0 replies; only message in thread
From: Mike Fabian @ 2023-09-16 7:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=71de3aead9fffe89556e80ebc94aa918d8ee7bca
commit 71de3aead9fffe89556e80ebc94aa918d8ee7bca
Author: Mike FABIAN <mfabian@redhat.com>
Date: Thu Sep 14 19:18:00 2023 +0200
localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diff:
---
localedata/unicode-gen/utf8_gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py
index b48dc2aaa4..117c5a9652 100755
--- a/localedata/unicode-gen/utf8_gen.py
+++ b/localedata/unicode-gen/utf8_gen.py
@@ -350,7 +350,7 @@ if __name__ == "__main__":
# the EastAsianWidth.txt file.
if re.match(r'.*<reserved-.+>\.\.<reserved-.+>.*', LINE):
continue
- if re.match(r'^[^;]*;[WF]', LINE):
+ if re.match(r'^[^;]*;\s*[WF]\s*', LINE):
EAST_ASIAN_WIDTH_LINES.append(LINE.strip())
with open(ARGS.prop_list_file, mode='r') as PROP_LIST_FILE:
PROP_LIST_LINES = []
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-16 7:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16 7:22 [glibc] localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt Mike Fabian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).