在GTK下发生"locale not supported by Xlib",该如何解决?
是不是必须生成.mo文件才行啊? 问题点数:20、回复次数:2Top
1 楼tonyMCM(南京~上海)回复于 2006-03-03 10:54:28 得分 0
XFree86 的本地化数据文件找不到了
Top
2 楼tonyMCM(南京~上海)回复于 2006-03-03 10:54:40 得分 0
I've developed an application of gdk/gtk/gnome.
> > But, when I run the application, the following messages emit.
> >
> >
> > Gdk-WARNING **: locale not supported by Xlib, locale set to C
> >
> > Gdk-WARNING **: can not set locale modifiers
> >
> >
> > What's wrong? How can I fix it?
>
> Your locale isn't supported by Xlib. So you need to change your locale
> to one that is, or change your Xlib to one that supports your locale.
>
> "echo $LANG" or "echo $LC_ALL" to see what locale you're using.
>
> Havoc
First, thanks for your kindness response.
I have tried to change "locale" to
$ setenv LANG C
$ setenv LANG POSIX
$ setenv LANG iso_8859_1
$ setenv LANG en_US.UTF-8
etc.
But all setting failed.
Furthermore according to the locale setting, gdk-warning message changed.
For locale setting to "C"
Gdk-WARNING **: locale not supported by C library
Gdk-WARNING **: locale not supported by Xlib, locale set to C
Gdk-WARNING **: can not set locale modifiers
For locale setting to "POSIX"
Gdk-WARNING **: locale not supported by Xlib, locale set to C
Gdk-WARNING **: can not set locale modifiers
I studied and found out the locale supported by C library in my computer.
$ locale -a
But how can I find out the locale supported by Xlib ?
I'm using both openwin and X11R6. Please help me again.
Top




