1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

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.
This commit is contained in:
Simon Tatham 2024-09-22 19:05:41 +01:00
parent 79ff0d086a
commit 1441023f5a

View File

@ -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):