10000 [unicode.py] update to Unicode 13.0.0 · unicode-rs/unicode-segmentation@3ef036a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ef036a

Browse files
committed
[unicode.py] update to Unicode 13.0.0
emoji-data.txt URL was changed in Unicode 13
1 parent d1ae69c commit 3ef036a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/unicode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# these are the surrogate codepoints, which are not valid rust characters
5555
surrogate_codepoints = (0xd800, 0xdfff)
5656

57-
UNICODE_VERSION = (12, 0, 0)
57+
UNICODE_VERSION = (13, 0, 0)
5858

5959
UNICODE_VERSION_NUMBER = "%s.%s.%s" %UNICODE_VERSION
6060

@@ -64,8 +64,8 @@ def is_surrogate(n):
6464
def fetch(f):
6565
if not os.path.exists(os.path.basename(f)):
6666
if "emoji" in f:
67-
os.system("curl -O https://www.unicode.org/Public/emoji/%s.%s/%s"
68-
% (UNICODE_VERSION[0], UNICODE_VERSION[1], f))
67+
os.system("curl -O http://www.unicode.org/Public/%s/ucd/emoji/%s"
68+
% (UNICODE_VERSION_NUMBER, f))
6969
else:
7070
os.system("curl -O http://www.unicode.org/Public/%s/ucd/%s"
7171
% (UNICODE_VERSION_NUMBER, f))

0 commit comments

Comments
 (0)
0