Update to Unicode 13

Change version fields to u8 as the maximum value
of each field is 255 according to specification.
This commit is contained in:
Pyfisch
2020-04-13 11:33:44 +02:00
parent b1c2d84295
commit 8276b8fffc
2 changed files with 184 additions and 180 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ if __name__ == "__main__":
rf.write("""
/// The version of [Unicode](http://www.unicode.org/)
/// that this version of unicode-width is based on.
pub const UNICODE_VERSION: (u64, u64, u64) = (%s, %s, %s);
pub const UNICODE_VERSION: (u8, u8, u8) = (%s, %s, %s);
""" % unicode_version)
gencats = load_unicode_data("UnicodeData.txt")