Re: Japanese Display for gtk+-1.2.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>Could you compile xmbcs.c after replacing setlocale()
>>by _Xsetlocale() as following?

After the said changes, the program successfully displayed the japanese characters.

What does it mean??? What is the difference between the setlocale and _Xsetlocale???

On 11/2/05, mpsuzuki@xxxxxxxxxxxxxxxxx <mpsuzuki@xxxxxxxxxxxxxxxxx> wrote:
On Wed, 2 Nov 2005 10:40:24 +0800
Xyber Blue <xyberblue@xxxxxxxxx> wrote:

>>>Wao, this output means: there's at least 1 locale
>>>that you can use Japanese on X11. Show the output
>>>of "./xresolvelocale2 `locale -a`".
>
>I am attaching the output file of the above command...

From the output, the lowest foundation of your X11 is
enabled to handle Japanese. Now I'm afraid your X11
is configured to use X_LOCALE instead of libc's native
locale.

Could you compile xmbcs.c after replacing setlocale()
by _Xsetlocale() as following?

diff -u -r1.9 xmbcs.c
--- xmbcs.c     31 Oct 2005 04:14:14 -0000       1.9
+++ xmbcs.c     2 Nov 2005 04:54:54 -0000
@@ -47,7 +47,7 @@

void setup_locale()
{
-  if ( setlocale( LC_CTYPE, "" ) == NULL )
+  if ( _Xsetlocale( LC_CTYPE, "" ) == NULL )
   {
       printf( "libc locale setup failed\n" );
       exit( 1 );





_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux