Skip to content

pathname_cwd should decode cwd() before use #2413

@xworld21

Description

@xworld21

Offending line, I think:

if (my $cwd = cwd()) {

It turns out that Cwd returns bytes (char *) that need to be decoded in the appropriate locale. The current behaviour causes issues in postprocessing when non-ASCII characters are present (see vlmantova/bookml#18). Even just running latexmlpost will show 'paginating /path/to/file.xml' with mangled characters.

Cc @leorolla

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions