Skip to content

Commit b093cf9

Browse files
authored
update for unicode 14 (#233)
1 parent 0e59e0b commit b093cf9

8 files changed

Lines changed: 9181 additions & 8827 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ disallow_intree_builds()
77
if (POLICY CMP0048)
88
cmake_policy (SET CMP0048 NEW)
99
endif ()
10-
project (utf8proc VERSION 2.6.1 LANGUAGES C)
10+
project (utf8proc VERSION 2.7.0 LANGUAGES C)
1111

1212
# This is the ABI version number, which may differ from the
13-
# API version number (defined in utf8proc.h).
13+
# API version number (defined in utf8proc.h and above).
1414
# Be sure to also update these in Makefile and MANIFEST!
1515
set(SO_MAJOR 2)
16-
set(SO_MINOR 4)
17-
set(SO_PATCH 1)
16+
set(SO_MINOR 5)
17+
set(SO_PATCH 0)
1818

1919
option(UTF8PROC_INSTALL "Enable installation of utf8proc" On)
2020
option(UTF8PROC_ENABLE_TESTING "Enable testing of utf8proc" Off)
@@ -68,7 +68,7 @@ endif()
6868
if(UTF8PROC_ENABLE_TESTING)
6969
enable_testing()
7070
file(MAKE_DIRECTORY data)
71-
set(UNICODE_VERSION 13.0.0)
71+
set(UNICODE_VERSION 14.0.0)
7272
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)
7373
file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)
7474
add_executable(case test/tests.h test/tests.c utf8proc.h test/case.c)

MANIFEST

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ include/
22
include/utf8proc.h
33
lib/
44
lib/libutf8proc.a
5-
lib/libutf8proc.so -> libutf8proc.so.2.4.1
6-
lib/libutf8proc.so.2 -> libutf8proc.so.2.4.1
7-
lib/libutf8proc.so.2.4.1
5+
lib/libutf8proc.so -> libutf8proc.so.2.5.0
6+
lib/libutf8proc.so.2 -> libutf8proc.so.2.5.0
7+
lib/libutf8proc.so.2.5.0
88
lib/pkgconfig/
99
lib/pkgconfig/libutf8proc.pc

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ SOFLAG = -Wl,-soname
2323
# The API version number is defined in utf8proc.h.
2424
# Be sure to also update these ABI versions in MANIFEST and CMakeLists.txt!
2525
MAJOR=2
26-
MINOR=4
27-
PATCH=1
26+
MINOR=5
27+
PATCH=0
2828

2929
OS := $(shell uname)
3030
ifeq ($(OS),Darwin) # MacOS X

NEWS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# utf8proc release history #
22

3+
## Version 2.7.0-alpha ##
4+
5+
- Unicode 14 support ([#233]).
6+
7+
- Support `GNUInstallDirs` in CMake build ([#159]).
8+
9+
- `cmake` build now installs `pkg-config` file ([#224]).
10+
11+
- Various build and portability improvements.
12+
313
## Version 2.6.1 ##
414

515
2020-12-15
@@ -409,8 +419,11 @@ Release of version 1.0.1
409419
[#152]: https://github.com/JuliaStrings/utf8proc/issues/152
410420
[#154]: https://github.com/JuliaStrings/utf8proc/issues/154
411421
[#156]: https://github.com/JuliaStrings/utf8proc/issues/156
422+
[#159]: https://github.com/JuliaStrings/utf8proc/issues/159
412423
[#167]: https://github.com/JuliaStrings/utf8proc/issues/167
413424
[#173]: https://github.com/JuliaStrings/utf8proc/issues/173
414425
[#179]: https://github.com/JuliaStrings/utf8proc/issues/179
415426
[#196]: https://github.com/JuliaStrings/utf8proc/issues/196
416427
[#205]: https://github.com/JuliaStrings/utf8proc/issues/205
428+
[#224]: https://github.com/JuliaStrings/utf8proc/issues/224
429+
[#233]: https://github.com/JuliaStrings/utf8proc/issues/233

data/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CharWidths.txt: charwidths.jl EastAsianWidth.txt
2222
$(JULIA) charwidths.jl > $@
2323

2424
# Unicode data version (must also update utf8proc_unicode_version function)
25-
UNICODE_VERSION=13.0.0
25+
UNICODE_VERSION=14.0.0
2626

2727
UnicodeData.txt:
2828
$(CURL) $(CURLFLAGS) -o $@ https://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt

utf8proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ UTF8PROC_DLLEXPORT const char *utf8proc_version(void) {
101101
}
102102

103103
UTF8PROC_DLLEXPORT const char *utf8proc_unicode_version(void) {
104-
return "13.0.0";
104+
return "14.0.0";
105105
}
106106

107107
UTF8PROC_DLLEXPORT const char *utf8proc_errmsg(utf8proc_ssize_t errcode) {
@@ -410,7 +410,7 @@ UTF8PROC_DLLEXPORT int utf8proc_charwidth(utf8proc_int32_t c) {
410410
}
411411

412412
UTF8PROC_DLLEXPORT utf8proc_category_t utf8proc_category(utf8proc_int32_t c) {
413-
return utf8proc_get_property(c)->category;
413+
return (utf8proc_category_t) utf8proc_get_property(c)->category;
414414
}
415415

416416
UTF8PROC_DLLEXPORT const char *utf8proc_category_string(utf8proc_int32_t c) {

utf8proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
/** The MAJOR version number (increased when backwards API compatibility is broken). */
7272
#define UTF8PROC_VERSION_MAJOR 2
7373
/** The MINOR version number (increased when new functionality is added in a backwards-compatible manner). */
74-
#define UTF8PROC_VERSION_MINOR 6
74+
#define UTF8PROC_VERSION_MINOR 7
7575
/** The PATCH version (increased for fixes that do not change the API). */
76-
#define UTF8PROC_VERSION_PATCH 1
76+
#define UTF8PROC_VERSION_PATCH 0
7777
/** @} */
7878

7979
#include <stdlib.h>

0 commit comments

Comments
 (0)