Silly bug or am I just stupid?
- From: Dimitromanolakis Apostolos <apdim grecian net>
- To: gtk-devel-list redhat com
- Subject: Silly bug or am I just stupid?
- Date: Mon, 19 Oct 1998 04:25:28 +0300 (EEST)
Hi everybody,
There is something very strange in both the 1.0 and 1.1 source trees.
More specifically the call to set the locale looks like:
current_locale = g_strdup (setlocale (LC_CTYPE, NULL));
This has the unfortunate effect that current_locale always has the value
"C" even if you have set your LANG enviroment variable. This occured to me
since I use locales and noticed that my locale extra keyboard bindings
didn't work with any gtk+ application. I believe that more
politically correct is:
current_locale = g_strdup (setlocale (LC_CTYPE, ""));
as is documented on the manual page (the man page does not define
behaviour for NULL second argument). At least this patch solved my
problem. I don't know if it is related to glibc in any way. Also I have
noticed the same mistake in at least two other programs (one of them is
nxterm).
___________
»» apdim ««
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]