1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/x11/libgnome/files/patch-bl
Ade Lovett d63ba47bd2 Add fix for GNOME forcibly trying to set the locale to en_US
under certain circumstances.

PORTREVISION bumped to 1 to reflect this
2000-09-16 18:24:39 +00:00

36 lines
1.3 KiB
Plaintext

--- libgnomeui/gnome-init.c.orig Sat May 6 10:30:31 2000
+++ libgnomeui/gnome-init.c Tue Sep 12 11:34:20 2000
@@ -200,32 +200,8 @@
switch(reason) {
case POPT_CALLBACK_REASON_PRE:
{
- char *ctype, *old_ctype = NULL;
- gboolean ctype_set;
-
gnome_segv_setup (FALSE);
- ctype = setlocale (LC_CTYPE, NULL);
-
- if (!strcmp(ctype, "C")) {
- old_ctype = g_strdup (getenv ("LC_CTYPE"));
- putenv ("LC_CTYPE=en_US");
- ctype_set = TRUE;
- } else
- ctype_set = FALSE;
-
gtk_set_locale ();
-
- if (ctype_set) {
- char *setme;
-
- if (old_ctype) {
- setme = g_strconcat ("LC_CTYPE=", old_ctype, NULL);
- g_free(old_ctype);
- } else
- setme = "LC_CTYPE";
-
- putenv (setme);
- }
client = gnome_master_client();
}
break;