|
From: Allin C. <cot...@wf...> - 2007-11-24 03:38:42
|
On Fri, 23 Nov 2007, Ethan A Merritt wrote:
>
> > lascaux [1235] ./gnuplot...
>
> > gnuplot> show locale
> >
> > LC_CTYPE is en_US.UTF-8
> > LC_TIME is C
This is puzzling.
1) If LC_CTYPE is en_US.UTF-8 then g_get_charset should certainly
return UTF-8, which it is not doing in the cairo driver.
2) How did LC_CTYPE _get_ to be equal to en_US.UTF-8 at this point
in execution, when the only command that has been issued is "show
locale"?
I can't see any invocation of setlocale(LC_CTYPE, "") in src/*.c
other than in the default response to the command "set locale".
3) Anyway, by the time you plot a graph using cairo the LC_CTYPE
setting has reverted to "C". I've verified that by sticking a
print before the g_get_charset() invocation:
fprintf(stderr, "gp_cairo_get_encoding: LC_CTYPE is %s\n",
setlocale(LC_CTYPE, NULL));
-> gp_cairo_get_encoding: LC_CTYPE is C
Allin Cottrell
|