my dreams about gtk/freebsd...
- From: "pixel" <pixel epita fr>
- To: <gtk-list redhat com>
- Subject: my dreams about gtk/freebsd...
- Date: Sun, 2 May 1999 23:27:17 +0200
Hi Lords,
I'm angry about this setlocale() stuff. The fact is :
when you have LC_MESSAGES on your system, a
setlocale(LC_MESSAGES,NULL) can return NULL. This will
end with a segfault (in gtk_rc_init(), for
example, you'll :
locale = setlocale(LC_MESSAGES,NULL);
if (strcmp(locale,"C") && strcmp(locale,"POSIX"))
{
/* do stuff */
}
Since locale is NULL, you'll understand that this may lead
to problems). So it *is* necessary to test the setlocale()
result.
1) I want to know if others have experienced this.
2) And (as allways), if it is a bug, I would know
what is the correct way to handle this. Since the
default is "C", it should be correct to init locale
with this value when setlocale() return NULL...
Thanks a lot !
--
pixel@{epita,dotcom}.fr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]