Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_real in cff_dict.c fails on some locales #8

Open
simoncozens opened this issue Apr 16, 2019 · 1 comment
Open

get_real in cff_dict.c fails on some locales #8

simoncozens opened this issue Apr 16, 2019 · 1 comment

Comments

@simoncozens
Copy link
Member

See sile-typesetter/sile#573. cff_dict.c parses real numbers using the strtod library function. However, when the locale is set to one where LC_NUMERIC sets the decimal point to something other than ., get_real fails because it is expecting the decimal point to be the period character.

We should fix this locally, probably by providing our own non-locale-aware strod, and also notify upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant