GNU bug report logs -
#22902
GUILE_INSTALL_LOCALE not equivalent to setlocale
Previous Next
Reported by: Zefram <zefram <at> fysh.org>
Date: Fri, 4 Mar 2016 03:36:01 UTC
Severity: normal
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 22902 <at> debbugs.gnu.org (full text, mbox):
On Fri 04 Mar 2016 04:34, Zefram <zefram <at> fysh.org> writes:
> The documentation claims that setting GUILE_INSTALL_LOCALE=1 in the
> environment is equivalent to calling (setlocale LC_ALL "") at startup.
> Actually there is at least one difference: calling setlocale causes ports
> (both primordial and later-opened) to be initially configured for the
> locale's nominal character encoding, but setting the environment variable
> does not. Setting the environment variable leaves the port encoding at
> #f, functioning as ISO-8859-1, just as if locale had not been invoked
> at all. I do see some effects from setting the environment variable,
> specifically message strings affecting strftime.
Indeed! Thank you for this analysis; I was wondering why I was getting
terrible backtraces in Guile master.
Andy
This bug report was last modified 8 years and 286 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.