HELP: XtSetLanguageProc Blues! :(

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
HELP: XtSetLanguageProc Blues! :(

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

Hi,
I am trying a very serious attempt at internationalization of a solaris application. Right now my job is to internationalize the app we already had.
The source code is solaris based on X11R5/Motif1.2. I am working on solaris 2.8.
The first step to internationalization is removing all instances of setlocale and use XtSetLanguageProc instead. I have done it. Now if I launch the application in en_US.UTF-8 locale I see a language window appended at the bottom of all dialog windows. This is exactly what I want.
But this should happen in any UTF-8 locale. This is not happening in any of the locales OTHER than en_US.UTF-8 locale.
If I remove XtSetLanguageProc from the code and use setlocale;XSetLocaleModifers instead then I see language window appended in all the dialogs in fr_FR.UTF-8 locale BUT then this goes away in en_US.UTF-8 locale.
Help I have already spend one whole week working on this problem.
The problem seems related to use of setlocale/XtSetLanguageProc only. Is there something I am missing? Any bugs/recommended patches?
I am using XtSetLanguageProc(NULL,NULL,NULL) before XtInitialize.
HELP!!!
‹ Problem with wchar_t XmString UTF-8 Handling! :( ›

sagaur

Tue, 06/01/2004 - 15:27#1

More inputs...

I also did testing with changing/setting input styles.

In en_US.UTF-8 locale I was able to set rootwin, off thespot, over the spot but not on the spot.

In all other locales I was not able to set any of the input styles.