]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsian...
authorMike FABIAN <mfabian@redhat.com>
Thu, 14 Sep 2023 17:18:00 +0000 (19:18 +0200)
committerMike FABIAN <mfabian@redhat.com>
Sat, 16 Sep 2023 06:37:02 +0000 (08:37 +0200)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
localedata/unicode-gen/utf8_gen.py

index b48dc2aaa451f1f94fa9417ae0c475460d2843d4..117c5a96526e37196bfe1a28e079606a25685836 100755 (executable)
@@ -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 = []