HarfBuzz text shaping engine
Go to file
Behdad Esfahbod a45a630539
Fix unintentional locale dependency (#3358)
Avoid unintentional locale dependency

hb_variation_to_string uses sprintf with %g, which will produce
a locale-dependent decimal point, which is not desired here.

The output is supposed to be compatible with CSS syntax, and
that always uses '.' for the decimal point.

Fix this by changing the per-thread locale to "C" around sprintf call.

Fixes https://github.com/harfbuzz/harfbuzz/issues/3355
Fixes https://github.com/harfbuzz/harfbuzz/pull/3357
Fixes https://github.com/harfbuzz/harfbuzz/pull/3358

Co-authored-by: Matthias Clasen <mclasen@redhat.com>
2022-01-08 16:47:33 -07:00
.ci [ci] Bump ghr tool used to post release artifacts to v0.14.0 2021-08-18 14:25:15 +02:00
.circleci [ci] Try harder to fix this randomly failing job 2021-12-12 07:50:06 +02:00
.github/workflows [ci] windows-2016 image is going away in a bit 2021-11-24 02:05:28 +02:00
docs [buffer] Add hb_buffer_create_similar() 2022-01-03 11:57:42 -07:00
m4 Revert "Remove autotools build support" 2020-08-11 23:51:59 +04:30
perf [meson] Require 0.55.0 2021-11-22 03:11:36 +02:00
src Fix unintentional locale dependency (#3358) 2022-01-08 16:47:33 -07:00
subprojects [meson] Add ragel subproject 2021-09-14 18:46:33 -06:00
test [subset] Fix for fuzzer timeout. 2021-12-14 17:34:21 -07:00
util [buffer] Add hb_buffer_create_similar() 2022-01-03 11:57:42 -07:00
.clang-format Add an initial .clang-format config 2019-01-09 16:01:11 +03:30
.codecov.yml [ci] Disable patch-level codecov failures 2021-06-04 14:51:49 -06:00
.editorconfig [meson] Minor, replace tabs with spaces 2020-03-24 19:06:09 +00:00
AUTHORS Update AUTHORS / COPYING 2019-04-21 12:26:07 -04:00
BUILD.md [docs] Remove packagers related part 2020-08-02 11:15:15 +04:30
CMakeLists.txt [subset] Refine the coding style 2021-10-11 13:07:12 -06:00
CONFIG.md [CONFIG] Add HB_CONFIG_OVERRIDE_H to simplify config overrides 2021-12-03 11:49:55 -07:00
COPYING Update COPYING 2021-06-05 13:44:51 -06:00
Makefile.am [meson] Add ragel subproject 2021-09-14 18:46:33 -06:00
NEWS 3.2.0 2021-12-12 04:45:54 +02:00
README Rename various references to master branch 2021-06-05 04:18:52 +02:00
README.md Rename various references to master branch 2021-06-05 04:18:52 +02:00
README.mingw.md [mingw] Reinstate win32 cross-compiling with autotools instructions 2021-01-24 12:28:04 -07:00
README.python.md [docs] Update README.python.md with meson 2020-08-03 18:41:49 +04:30
RELEASING.md [releasing] Format notes as Markdown checklist for pasting in GH PR/Issue 2021-07-08 11:32:24 -07:00
TESTING.md [docs] Minor in TESTING.md 2020-08-14 10:19:33 +04:30
THANKS [THANKS] Add Ivan Kuckir <https://photopea.com/> 2019-04-24 15:08:27 -07:00
TODO [TODO] Remove BCP 47 language handling item 2018-10-20 21:13:25 +03:30
autogen.sh Revert "Remove autotools build support" 2020-08-11 23:51:59 +04:30
configure.ac Fix unintentional locale dependency (#3358) 2022-01-08 16:47:33 -07:00
git.mk Revert "Remove autotools build support" 2020-08-11 23:51:59 +04:30
harfbuzz.doap Move all references of old url to the new address (#622) 2017-11-20 14:49:22 -05:00
meson.build Fix unintentional locale dependency (#3358) 2022-01-08 16:47:33 -07:00
meson_options.txt [meson] Add graphite2 option and deprecate graphite 2021-10-23 10:59:02 -07:00
mingw-configure.sh [mingw] Reinstate win32 cross-compiling with autotools instructions 2021-01-24 12:28:04 -07:00
replace-enum-strings.cmake Revert "Remove cmake build files" 2020-08-12 01:00:33 +04:30

README.md

Linux CI Status CircleCI Build Status OSS-Fuzz Status Coverity Code Health Codacy Code Health Codecov Code Coverage Coverals Code Coverage Packaging status ABI Tracker

This is HarfBuzz, a text shaping library.

For bug reports, mailing list, and other information please visit:

http://harfbuzz.org/

For license information, see COPYING.

For build information, see BUILD.md.

For custom configurations, see CONFIG.md.

For test execution, see TESTING.md.

Documentation: https://harfbuzz.github.io

Packaging status of HarfBuzz

Packaging status