locale support on X11

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

 



Hi guys,

 

I’m on a tight deadline and i hope somebody can help me.  I was instructed to enable locale support on X11.  However, I am not sure if I was doing the right thing.  I just run ‘make World’ and ‘make install’.  Looking at config/cf/linux.cf, it seems that –DX_LOCALE is going to be defined.  However, during compilation (running make World), I redirect its output to a LOGFILE.  After compilation, I checked the file but –DX_LOCALE is not defined.  But still I continued and I created the locales using localedef command and indeed the locales were created in /usr/lib/locale directory.  I don’t know how to verify if locale is already support by X11 so I created an application as shown below:

 

#include <X11/Xlocale.h>

#include <X11/Xlib.h>

#include <stdio.h>

 

main(int argc, char **argv)

{

  char *xlocale;

  xlocale=setlocale(LC_CTYPE, argv[1]);

  printf("locale=%s\n", xlocale);

  xlocale=setlocale(LC_CTYPE, NULL);

  printf("current locale=%s\n", xlocale);

#if 1

  if(!XSupportsLocale())

    printf("X does not support locale.\n");

  else

    printf("X supports locale.\n");

#endif

}

 

I named the binary application as ‘loc’.  When I executed ‘./loc ja’ the result is shown below:

 

locale=ja

current locale=ja

X does not support locale.

 

What did I miss?  I have also checked my /usr/share/i18n directory.  It seems that ja is there in compose.dir and locale.dir.  Please help me!

 

Thanks,

Mayet


[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux