From 1441023f5aa704f978ba59c4a1a3fcc8d2556917 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 22 Sep 2024 19:05:41 +0100 Subject: [PATCH] read_ucd.py: tolerate whitespace in EastAsianWidth.txt. Unicode 16.0.0 has changed the formatting of that file in a way that I'm sure _they_ thought was unproblematic :-) by putting spaces around the character class field, which the reading code wasn't prepared to cope with. --- unicode/read_ucd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unicode/read_ucd.py b/unicode/read_ucd.py index ba9f0f31..6fd0dd7d 100755 --- a/unicode/read_ucd.py +++ b/unicode/read_ucd.py @@ -248,7 +248,7 @@ class Main: else: cs = [int(fields[0], 16)] for c in cs: - yield c, fields[1] + yield c, fields[1].strip() @property def CompositionExclusions(self):