Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16883 - altering of glibc private area in gtkrc.c
Summary: altering of glibc private area in gtkrc.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 06:10 UTC by Stanislav Brabec
Modified: 2003-03-08 13:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gtk-no-alter-locale.patch (gtk.patch,419 bytes, patch)
2003-03-06 06:26 UTC, Stanislav Brabec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2003-03-05 06:10:55 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=107634

Since glibc-2.3 this is not tolerated and breaks many apps (in non-english
languages): Evolution, Gabber, gdm, xmms etc.

Reproducible: Always
Steps to Reproduce:
/* gcc -Wall locale.c -o locale `gtk-config --cflags gtk` `gtk-config --libs
gtk` ; ./locale */

#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
#include <gtk/gtk.h>

int main (int argc, char **argv) {
  setlocale(LC_ALL, "cs_CZ");
  printf ("Locale is: %s\n", setlocale (LC_CTYPE, NULL));
  gtk_init(&argc, &argv);
  gtk_rc_init();
  printf ("Locale is: %s\n", setlocale (LC_CTYPE, NULL));
  exit(0);
}

Actual Results:  
Locale is: cs_CZ
Locale is: cs


Expected Results:  
Locale is: cs_CZ
Locale is: cs_CZ


The bug can be solved by removing all gtkrc.c code from Gentoo patch or by
backporting fix done a year ago in gtk-2.
Comment 1 Stanislav Brabec 2003-03-06 06:26:45 UTC
Created attachment 9018 [details, diff]
gtk-no-alter-locale.patch

There are more solutions (in orded):

1) Update Gentoo patch to CVS version and remove everything about gtkrc.c.
2) Update Gentoo patch to CVS version.
3) Remove everything about gtkrc.c from Gentoo patch.
4) Add attached patch.
Comment 2 foser (RETIRED) gentoo-dev 2003-03-08 13:37:15 UTC
patch committed.

Thanks for your help :)