aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike FABIAN <mfabian@redhat.com>2023-09-14 19:18:00 +0200
committerMike FABIAN <mfabian@redhat.com>2023-09-16 08:37:02 +0200
commit71de3aead9fffe89556e80ebc94aa918d8ee7bca (patch)
tree396d0ac4ed9d3ecd0c454efde2ae5fc8547db892
parentba017b4f9d90ee30e409034b4a32af71e3136a7f (diff)
downloadglibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.zip
glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.tar.gz
glibc-71de3aead9fffe89556e80ebc94aa918d8ee7bca.tar.bz2
localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-rwxr-xr-xlocaledata/unicode-gen/utf8_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py
index b48dc2a..117c5a9 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 = []