Closed sp1ritCS closed 2 years ago
This is more or less straight up taken from our NoteKit implementation, where there was a similar bug, that resulted in broken JSON parsing by jsoncpp. Because the libc LANG isn't scoped, this bug never occurred in NoteKit since we've already set LC_NUMERIC to "C".
TheLC_NUMERIC
will affect the result of functions strtod
, strtol
, and so on, the first time I've heard about that, learned a lot 🎆 .
This is to work arround the decimal parsing implementation that expects comma as decimal seperator for de_DE (and maybe other langs to).
Currently $\LaTeX$ looks like this on a German system: