10000 Update to Unicode 13 · unicode-rs/unicode-normalization@9455329 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9455329

Browse files
committed
Update to Unicode 13
Change version fields to u8 as the maximum value of each field is 255 according to specification.
1 parent 20679bc commit 9455329

File tree

3 files changed

+11837
-10373
lines changed

3 files changed

+11837
-10373
lines changed

scripts/unicode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import collections
2121
import urllib.request
2222

23-
UNICODE_VERSION = "9.0.0"
24-
UCD_URL = "https://www.unicode.org/Public/%s/ucd/" % UNICODE_VERSION
23+
UNICODE_VERSION = "13.0.0"
24+
UCD_URL = "http://www.unicode.org/Public/%s/ucd/" % UNICODE_VERSION
2525

2626
PREAMBLE = """// Copyright 2012-2018 The Rust Project Developers. See the COPYRIGHT
2727
// file at the top-level directory of this distribution and at
@@ -483,7 +483,7 @@ def minimal_perfect_hash(d):
483483

484484
version = "(%s, %s, %s)" % tuple(UNICODE_VERSION.split("."))
485485
out.write("#[allow(unused)]\n")
486-
out.write("pub const UNICODE_VERSION: (u64, u64, u64) = %s;\n\n" % version)
486+
out.write("pub const UNICODE_VERSION: (u8, u8, u8) = %s;\n\n" % version)
487487

488488
gen_combining_class(data.combining_classes, out)
489489
out.write("\n")

0 commit comments

Comments
 (0)
0