Compare commits

..

3 commits

Author SHA1 Message Date
Fedora Release Engineering
bc4cab58fd Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:10:50 +00:00
Fedora Release Engineering
32984407f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:36:13 +00:00
Jens Petersen
96a40fa57a test: update to unicode 17 and assume ascii text 2025-09-13 13:36:32 +08:00
2 changed files with 10 additions and 4 deletions

View file

@ -4,7 +4,7 @@ codepoints = 0
file = '/usr/share/unicode/ucd/UnicodeData.txt'
with open(file, mode='rt', encoding='utf-8') as unicode_data:
with open(file, mode='rt', encoding='ascii') as unicode_data:
for line in unicode_data.readlines():
codepoint_string, name, category = line.split(';')[:3]
codepoint = int(codepoint_string, 16)
@ -12,5 +12,5 @@ with open(file, mode='rt', encoding='utf-8') as unicode_data:
codepoints = codepoints + 1
print(codepoints)
# Unicode 16 has 40116
assert(codepoints > 40000)
# Unicode 17
assert(codepoints == 40575)

View file

@ -4,7 +4,7 @@
Name: unicode-ucd
Version: 17.0.0
Release: 1%{?dist}
Release: 3%{?dist}
Summary: Unicode Character Database
# http://www.unicode.org/terms_of_use.html in ReadMe.txt redirects to:
@ -63,6 +63,12 @@ cp %{SOURCE2} .
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Sep 10 2025 Jens Petersen <petersen@redhat.com> - 17.0.0-1
- https://www.unicode.org/versions/Unicode17.0.0/
- https://blog.unicode.org/2025/09/unicode-170-release-announcement.html