Skip to content

get_real in cff_dict.c fails on some locales #18

@simoncozens

Description

@simoncozens

See sile-typesetter/libtexpdf#8 and 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 are planning to fix this in libtexpdf by providing a locale-independent strtod, but you will probably also want to fix this here too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions