Skip to content

Commit

Permalink
Force C locale LC_NUMERIC to "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
bhennion committed Nov 13, 2021
1 parent 90c41f0 commit 75b1b6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/control/XournalMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ void initLocalisation() {
"xournalpp with msvc",
e.what());
}
/**
* Force numbers to be printed out and parsed by C libraries (cairo) in the "classic" locale.
* This avoids issue with tags when exporting to PDF, see #3551
*/
setlocale(LC_NUMERIC, "C");

std::cout.imbue(std::locale());
}

Expand Down

0 comments on commit 75b1b6f

Please sign in to comment.