<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - fontconfig-2.13.0 globally sets the locale from the environment"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105492#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - fontconfig-2.13.0 globally sets the locale from the environment"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105492">bug 105492</a>
from <span class="vcard"><a class="email" href="mailto:eamerritt@gmail.com" title="Ethan Merritt <eamerritt@gmail.com>"> <span class="fn">Ethan Merritt</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>