[Fontconfig-bugs] [Bug 105492] fontconfig-2.13.0 globally sets the locale from the environment
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Sep 7 19:33:55 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105492
--- Comment #6 from Ethan Merritt <eamerritt at gmail.com> ---
Although this thread indicates that the problem has been resolved, this does
not seem to be the case in the current git source. The changes introduced by
98eaef69 are still present. I.e. in multiple places the code calls
setlocale(LC_all,""). This clobbers the current locale settings established by
the callling program.
I got here by debugging a problem reported against current gnuplot that so far
as I can tell is directly caused by this change to libfontconfig. The program
sets and relies on LC_NUMERIC == "C", but after calling into libfontconfig this
may have been changed to something else. In particular if the default locale
from the environment uses comma as a decimal point, bad things happen.
I suggest that 98eaef69 be reverted. A library call should not change the
caller's locale.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180907/3172c933/attachment.html>
More information about the Fontconfig-bugs
mailing list