Commit Graph

260 Commits

Author SHA1 Message Date
Andreas-Schniertshauer
e51f416e0c
Fix memory leaks in tests case.c and misc.c (#189)
* Add: tests to CMakeLists.txt

* Disable compilation of charwidth, graphemetest and normtest because of missing getline

* Refactoring: UTF8PROC_ENABLE_TESTING default Off, move tests that don't compile on windows to NOT MSVC section, add testing to appveyor.yml

* Add: testing to travis

* Changed: flag to WIN32 because MinGW has the same problem as MSVC

* Commented out graphemetest and normtest because they fail.

* Re-added: graphemetest and normtest added missing data to the path of the text files.

* Fix: last commit was party wrong normtest failed.

* * Commented out graphemetest and normtest because they fail, because in CMakeLists is missing building of data.

* Add: mingw_static, mingw_shared, msvc_shared, msvc_static to ignore list

* Add: prefix utf8proc. to tests

* Fix: memory leaks in tests case.c and misc.c forgot to call free after calling utf8proc_NFKC_Casefold

Co-authored-by: Andreas-Schniertshauer <Andreas-Schniertshauer@users.noreply.github.com>
2020-03-30 07:51:44 -04:00
Steven G. Johnson
ffba678bf4
Revert "disable tests under mingw" (#187)
This reverts commit 7e834d7702.
2020-03-29 10:48:42 -04:00
Steven G. Johnson
c6858e955c
use unsigned char more consistently, silence -Wextra compiler warnings (#188) 2020-03-29 10:44:42 -04:00
Steven G. Johnson
243875b456 fixes 2020-03-29 09:35:32 -04:00
Steven G. Johnson
f645f2a700 add build to gitignore, make paths absolute (closes #185) 2020-03-29 09:01:04 -04:00
Steven G. Johnson
11bb3d9dc7 fix grapheme test to work on unmodified data file 2020-03-29 08:53:11 -04:00
Steven G. Johnson
7e834d7702 disable tests under mingw 2020-03-28 21:25:42 -04:00
Andreas-Schniertshauer
98142acff9
Download data and execute commented out tests (#178)
* Add: tests to CMakeLists.txt

* Disable compilation of charwidth, graphemetest and normtest because of missing getline

* Refactoring: UTF8PROC_ENABLE_TESTING default Off, move tests that don't compile on windows to NOT MSVC section, add testing to appveyor.yml

* Add: testing to travis

* Changed: flag to WIN32 because MinGW has the same problem as MSVC

* Commented out graphemetest and normtest because they fail.

* Re-added: graphemetest and normtest added missing data to the path of the text files.

* Fix: last commit was party wrong normtest failed.

* * Commented out graphemetest and normtest because they fail, because in CMakeLists is missing building of data.

* Add: mingw_static, mingw_shared, msvc_shared, msvc_static to ignore list

* Add: downloading data and executing enabled tests that depend on the downloaded data.

* Fix: windows line endings CRLF replaced with linux LF

* Refactoring: (major) set UNICODE_VERSION to 13.0.0, replace curl with file DOWNLOAD, removed downloading unnecessary files, enabled normtest.

* Fix: woodhead error in revision adeac82ec9941667e3c3ad7f50769793547218c3 readded calling execute_process to strip GraphemeBreakTest.txt file

* Add: removing no more used file data/GraphemeBreakTestOrg.txt after stripping.

* Add: testing folder to ignore list

* Add: enabled graphemetest

* Update .gitignore

Co-authored-by: Andreas-Schniertshauer <Andreas-Schniertshauer@users.noreply.github.com>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
2020-03-28 17:16:35 -04:00
Steven G. Johnson
14c61c9683 Merge branch 'master' of https://github.com/JuliaLang/utf8proc 2020-03-28 14:00:43 -04:00
Steven G. Johnson
02fb59136d silence warning (closes #184) 2020-03-28 14:00:30 -04:00
Andreas-Schniertshauer
864f7f7b46
Tests with prefix utf8proc. (#177)
* Add: tests to CMakeLists.txt

* Disable compilation of charwidth, graphemetest and normtest because of missing getline

* Refactoring: UTF8PROC_ENABLE_TESTING default Off, move tests that don't compile on windows to NOT MSVC section, add testing to appveyor.yml

* Add: testing to travis

* Changed: flag to WIN32 because MinGW has the same problem as MSVC

* Commented out graphemetest and normtest because they fail.

* Re-added: graphemetest and normtest added missing data to the path of the text files.

* Fix: last commit was party wrong normtest failed.

* * Commented out graphemetest and normtest because they fail, because in CMakeLists is missing building of data.

* Add: mingw_static, mingw_shared, msvc_shared, msvc_static to ignore list

* Add: prefix utf8proc. to tests

* Add: prefix utf8proc. to tests

Co-authored-by: Andreas-Schniertshauer <Andreas-Schniertshauer@users.noreply.github.com>
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
2020-03-28 10:31:27 -04:00
Steven G. Johnson
6fff5f32bb
compile more tests on Windows (#183)
* compile more tests on Windows

* still disable charwidth tests

* silence warnings on MSVC about sscanf

* whoops

* silence warning
2020-03-28 10:00:18 -04:00
Steven G. Johnson
5f15b515e1 simplifications 2020-03-28 09:42:29 -04:00
Steven G. Johnson
d588d7097c portable getline replacement (closes #182) 2020-03-28 09:36:58 -04:00
Steven G. Johnson
0890a538bf new emoji-data.txt location (fixes #181) 2020-03-27 20:36:18 -04:00
Steven G. Johnson
0ff48bfbfd update 2020-03-27 18:38:44 -04:00
Steven G. Johnson
1ee551c85b whoops, generated from old tables 2020-03-27 18:35:20 -04:00
Steven G. Johnson
189dc0e981 link fixes 2020-03-27 17:32:42 -04:00
Steven G. Johnson
2bb7d884b5 version bump to 2.5 2020-03-27 17:22:21 -04:00
Steven G. Johnson
b48f5d074f
Unicode 13 support (#179)
* exclude Sk from zero-width chars (closes #167)

* update for Unicode 13
2020-03-27 17:06:06 -04:00
Andreas-Schniertshauer
47edf655b3
Add: tests to CMakeLists.txt (#173)
* Add: tests to CMakeLists.txt

* Disable compilation of charwidth, graphemetest and normtest because of missing getline

* Refactoring: UTF8PROC_ENABLE_TESTING default Off, move tests that don't compile on windows to NOT MSVC section, add testing to appveyor.yml

* Add: testing to travis

* Changed: flag to WIN32 because MinGW has the same problem as MSVC

* Commented out graphemetest and normtest because they fail.

* Re-added: graphemetest and normtest added missing data to the path of the text files.

* Fix: last commit was party wrong normtest failed.

* * Commented out graphemetest and normtest because they fail, because in CMakeLists is missing building of data.
2020-02-19 14:25:19 -05:00
Stefan Weil
20672dba69 Fix some typos (found by codespell) (#160)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-07-11 14:04:34 -04:00
Steven G. Johnson
0dc0fcf8db slight clarification 2019-05-14 11:00:08 -04:00
Steven G. Johnson
e6fba4aa8c update header file comments (closes #157) 2019-05-14 10:53:55 -04:00
Steven G. Johnson
5c632c5742 NEWS for 2.4, updated version numbers (which I forgot in 2.3, grrr) 2019-05-10 21:24:14 -04:00
Steven G. Johnson
9bb261f66b ignore vscode 2019-05-10 21:13:32 -04:00
GOTOH Shunsuke
7b28b9e60c update for unicode 12.1 (#156) 2019-05-10 21:12:45 -04:00
Steven G. Johnson
5d902fa1aa
typo 2019-05-08 11:24:51 -04:00
Steven G. Johnson
46b87f061e
more info 2019-05-08 11:24:27 -04:00
Steven G. Johnson
d416617270
note official releases 2019-05-08 11:22:37 -04:00
Steven G. Johnson
1fcb211035
more compile info 2019-05-08 11:20:25 -04:00
Michael Osipov
229fb8483e Document HP-UX build support (#155) 2019-05-07 20:02:19 -04:00
Michael Osipov
e1f8c728bb Improve portability of Make (#154)
Several options passed to $(CC) are not portable, e.g., for HP aCC.
Move them to variables.
2019-05-07 20:00:21 -04:00
past-due
416749803b [CMake] Add UTF8PROC_NO_INSTALL option (#152)
* [CMake] Add UTF8PROC_NO_INSTALL option

* change to UTF8PROC_INSTALL
2019-04-17 14:49:04 -04:00
Steven G. Johnson
e57cb43f2c
copyright year update 2019-04-09 15:10:20 -04:00
Steven G. Johnson
e1b05f7be3
fontforge is no longer needed 2019-04-09 15:09:57 -04:00
Steven G. Johnson
454f60150c Merge branch 'master' of https://github.com/JuliaLang/utf8proc 2019-03-30 16:34:11 -04:00
Steven G. Johnson
eb39b060e7 NEWS for 2.3 2019-03-30 16:33:59 -04:00
Steven G. Johnson
abf81603ba
add utf8proc_unicode_version (#151) 2019-03-30 16:31:02 -04:00
Steven G. Johnson
fd4d8a3454
give up on Unifont for charwidth data (#150)
* fix CHARBOUND option for non-characters

* give up on unifont for charwidth computation
2019-03-30 16:05:50 -04:00
Steven G. Johnson
94395db282 Merge branch 'master' of https://github.com/JuliaLang/utf8proc 2019-03-30 16:04:48 -04:00
Steven G. Johnson
3637d51855 doc clarification (closing #110) 2019-03-30 16:04:14 -04:00
Steven G. Johnson
4603e00cfc
fix CHARBOUND option for non-characters (#149) 2019-03-30 15:22:25 -04:00
Steven G. Johnson
e76cebb784
update for unicode 12 (#148) 2019-03-30 13:46:01 -04:00
Steven G. Johnson
5ae11afe8f
rebased cmake updates (#147)
* Use a target property instead of CMAKE_C_FLAGS

It is a global property, which is not great when importing utf8proc in other CMake projects.

* Use target properties instead of add_definitions

It modifies builds settings globally, which is not great when using
the library as part of a bigger CMake build

* Expose header search path with target_include_directories

This makes it possible to use utf8proc in a larger CMake based project
with

add_subdirectory(utf8proc)
target_link_libraries(my_app utf8proc)

* more rebase fixes
2019-03-30 13:37:34 -04:00
Steven G. Johnson
089a3af7ee
use Travis Julia support to get a modern Julia version (#146)
use Travis include: to specify Julia version
2019-03-30 13:17:21 -04:00
Steven G. Johnson
3c37219d1a fix Julia script for Julia 1.0 2018-11-01 17:17:06 -04:00
Graham Inggs
be3b244285 Pass users' flags (#141) 2018-11-01 17:10:48 -04:00
Michael Drake
5dcd38217a Generate and install a pkg-config file. (#142)
* Generate and install a pkg-config file.

* Use Makefile libdir and includedir for pkg-config.

This splits the prefix out from these variables, so that
the same variables can be used to construct the pkg-config
file.

* Update the manifest for installation of pkg-config file.

* Revert "Use Makefile libdir and includedir for pkg-config."

This reverts commit a4cd6dc64a357dd5b91781045b3ac1c4679af97f.

* Use Makefile libdir and includedir for pkg-config.

This splits the prefix out from these variables, so that
the same variables can be used to construct the pkg-config
file.
2018-11-01 17:09:16 -04:00
Steven G. Johnson
f174976532
link fix 2018-07-25 14:11:33 -04:00