update for unicode 14 (#233)

This commit is contained in:
Steven G. Johnson 2021-12-16 21:08:37 -05:00 committed by GitHub
parent 0e59e0b035
commit b093cf9dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9211 additions and 8857 deletions

View File

@ -7,14 +7,14 @@ disallow_intree_builds()
if (POLICY CMP0048) if (POLICY CMP0048)
cmake_policy (SET CMP0048 NEW) cmake_policy (SET CMP0048 NEW)
endif () endif ()
project (utf8proc VERSION 2.6.1 LANGUAGES C) project (utf8proc VERSION 2.7.0 LANGUAGES C)
# This is the ABI version number, which may differ from the # This is the ABI version number, which may differ from the
# API version number (defined in utf8proc.h). # API version number (defined in utf8proc.h and above).
# Be sure to also update these in Makefile and MANIFEST! # Be sure to also update these in Makefile and MANIFEST!
set(SO_MAJOR 2) set(SO_MAJOR 2)
set(SO_MINOR 4) set(SO_MINOR 5)
set(SO_PATCH 1) set(SO_PATCH 0)
option(UTF8PROC_INSTALL "Enable installation of utf8proc" On) option(UTF8PROC_INSTALL "Enable installation of utf8proc" On)
option(UTF8PROC_ENABLE_TESTING "Enable testing of utf8proc" Off) option(UTF8PROC_ENABLE_TESTING "Enable testing of utf8proc" Off)
@ -68,7 +68,7 @@ endif()
if(UTF8PROC_ENABLE_TESTING) if(UTF8PROC_ENABLE_TESTING)
enable_testing() enable_testing()
file(MAKE_DIRECTORY data) file(MAKE_DIRECTORY data)
set(UNICODE_VERSION 13.0.0) set(UNICODE_VERSION 14.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/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) 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) add_executable(case test/tests.h test/tests.c utf8proc.h test/case.c)

View File

@ -2,8 +2,8 @@ include/
include/utf8proc.h include/utf8proc.h
lib/ lib/
lib/libutf8proc.a lib/libutf8proc.a
lib/libutf8proc.so -> libutf8proc.so.2.4.1 lib/libutf8proc.so -> libutf8proc.so.2.5.0
lib/libutf8proc.so.2 -> libutf8proc.so.2.4.1 lib/libutf8proc.so.2 -> libutf8proc.so.2.5.0
lib/libutf8proc.so.2.4.1 lib/libutf8proc.so.2.5.0
lib/pkgconfig/ lib/pkgconfig/
lib/pkgconfig/libutf8proc.pc lib/pkgconfig/libutf8proc.pc

View File

@ -23,8 +23,8 @@ SOFLAG = -Wl,-soname
# The API version number is defined in utf8proc.h. # The API version number is defined in utf8proc.h.
# Be sure to also update these ABI versions in MANIFEST and CMakeLists.txt! # Be sure to also update these ABI versions in MANIFEST and CMakeLists.txt!
MAJOR=2 MAJOR=2
MINOR=4 MINOR=5
PATCH=1 PATCH=0
OS := $(shell uname) OS := $(shell uname)
ifeq ($(OS),Darwin) # MacOS X ifeq ($(OS),Darwin) # MacOS X

13
NEWS.md
View File

@ -1,5 +1,15 @@
# utf8proc release history # # utf8proc release history #
## Version 2.7.0-alpha ##
- Unicode 14 support ([#233]).
- Support `GNUInstallDirs` in CMake build ([#159]).
- `cmake` build now installs `pkg-config` file ([#224]).
- Various build and portability improvements.
## Version 2.6.1 ## ## Version 2.6.1 ##
2020-12-15 2020-12-15
@ -409,8 +419,11 @@ Release of version 1.0.1
[#152]: https://github.com/JuliaStrings/utf8proc/issues/152 [#152]: https://github.com/JuliaStrings/utf8proc/issues/152
[#154]: https://github.com/JuliaStrings/utf8proc/issues/154 [#154]: https://github.com/JuliaStrings/utf8proc/issues/154
[#156]: https://github.com/JuliaStrings/utf8proc/issues/156 [#156]: https://github.com/JuliaStrings/utf8proc/issues/156
[#159]: https://github.com/JuliaStrings/utf8proc/issues/159
[#167]: https://github.com/JuliaStrings/utf8proc/issues/167 [#167]: https://github.com/JuliaStrings/utf8proc/issues/167
[#173]: https://github.com/JuliaStrings/utf8proc/issues/173 [#173]: https://github.com/JuliaStrings/utf8proc/issues/173
[#179]: https://github.com/JuliaStrings/utf8proc/issues/179 [#179]: https://github.com/JuliaStrings/utf8proc/issues/179
[#196]: https://github.com/JuliaStrings/utf8proc/issues/196 [#196]: https://github.com/JuliaStrings/utf8proc/issues/196
[#205]: https://github.com/JuliaStrings/utf8proc/issues/205 [#205]: https://github.com/JuliaStrings/utf8proc/issues/205
[#224]: https://github.com/JuliaStrings/utf8proc/issues/224
[#233]: https://github.com/JuliaStrings/utf8proc/issues/233

View File

@ -22,7 +22,7 @@ CharWidths.txt: charwidths.jl EastAsianWidth.txt
$(JULIA) charwidths.jl > $@ $(JULIA) charwidths.jl > $@
# Unicode data version (must also update utf8proc_unicode_version function) # Unicode data version (must also update utf8proc_unicode_version function)
UNICODE_VERSION=13.0.0 UNICODE_VERSION=14.0.0
UnicodeData.txt: UnicodeData.txt:
$(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/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) { UTF8PROC_DLLEXPORT const char *utf8proc_unicode_version(void) {
return "13.0.0"; return "14.0.0";
} }
UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) { UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) {
@ -410,7 +410,7 @@ UTF8PROC_DLLEXPORT int utf8proc_charwidth(utf8proc_int32_t c) {
} }
UTF8PROC_DLLEXPORT utf8proc_category_t utf8proc_category(utf8proc_int32_t c) { UTF8PROC_DLLEXPORT utf8proc_category_t utf8proc_category(utf8proc_int32_t c) {
return utf8proc_get_property(c)->category; return (utf8proc_category_t) utf8proc_get_property(c)->category;
} }
UTF8PROC_DLLEXPORT const char *utf8proc_category_string(utf8proc_int32_t c) { UTF8PROC_DLLEXPORT const char *utf8proc_category_string(utf8proc_int32_t c) {

View File

@ -71,9 +71,9 @@
/** The MAJOR version number (increased when backwards API compatibility is broken). */ /** The MAJOR version number (increased when backwards API compatibility is broken). */
#define UTF8PROC_VERSION_MAJOR 2 #define UTF8PROC_VERSION_MAJOR 2
/** The MINOR version number (increased when new functionality is added in a backwards-compatible manner). */ /** The MINOR version number (increased when new functionality is added in a backwards-compatible manner). */
#define UTF8PROC_VERSION_MINOR 6 #define UTF8PROC_VERSION_MINOR 7
/** The PATCH version (increased for fixes that do not change the API). */ /** The PATCH version (increased for fixes that do not change the API). */
#define UTF8PROC_VERSION_PATCH 1 #define UTF8PROC_VERSION_PATCH 0
/** @} */ /** @} */
#include <stdlib.h> #include <stdlib.h>

File diff suppressed because it is too large Load Diff