unicode 15 support (#247)

This commit is contained in:
Steven G. Johnson 2022-10-24 23:18:17 -04:00 committed by GitHub
parent 1f1e42d3b8
commit 3c4929495a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3375 additions and 3189 deletions

View File

@ -68,7 +68,7 @@ endif()
if(UTF8PROC_ENABLE_TESTING)
enable_testing()
file(MAKE_DIRECTORY data)
set(UNICODE_VERSION 14.0.0)
set(UNICODE_VERSION 15.0.0)
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)
add_executable(case test/tests.h test/tests.c utf8proc.h test/case.c)

View File

@ -1,5 +1,9 @@
# utf8proc release history #
## Version 2.8.0-alpha ##
- Unicode 15 support ([#247]).
## Version 2.7.0 ##
2021-12-16

View File

@ -59,7 +59,7 @@ The C library is found in this directory after successful compilation
and is named `libutf8proc.a` (for the static library) and
`libutf8proc.so` (for the dynamic library).
The Unicode version supported is 13.0.0.
The Unicode version supported is 15.0.0.
For Unicode normalizations, the following options are used:

View File

@ -22,7 +22,7 @@ CharWidths.txt: charwidths.jl EastAsianWidth.txt
$(JULIA) charwidths.jl > $@
# Unicode data version (must also update utf8proc_unicode_version function)
UNICODE_VERSION=14.0.0
UNICODE_VERSION=15.0.0
UnicodeData.txt:
$(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt

View File

@ -101,7 +101,7 @@ UTF8PROC_DLLEXPORT const char *utf8proc_version(void) {
}
UTF8PROC_DLLEXPORT const char *utf8proc_unicode_version(void) {
return "14.0.0";
return "15.0.0";
}
UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) {

File diff suppressed because it is too large Load Diff