does anybody know how I can disable the locale mechanism in Motif?
It is causing me a lot of problems and I don't even need locale
support in my application, so the best way should be disbling it
Printable View
does anybody know how I can disable the locale mechanism in Motif?
It is causing me a lot of problems and I don't even need locale
support in my application, so the best way should be disbling it
Luca wrote:[color=blue]
> does anybody know how I can disable the locale mechanism in Motif?
>
> It is causing me a lot of problems and I don't even need locale
> support in my application, so the best way should be disbling it[/color]
The solution may be to set the locale to "C"
putenv("LANG=C");
setlocale(LC_ALL, "C");
at the begin of programm.
Regards,
Jean-Jacques
Hi Luca,
Luca wrote:[color=blue]
> Jean-Jacques Sarton <Jean-Jacques.Sarton@siemens.com> wrote in message news:<bdoq72$rj4$1@papyrus.erlm.siemens.de>...
>[color=green]
>>Luca wrote:
>>[color=darkred]
>>>does anybody know how I can disable the locale mechanism in Motif?
>>>
>>>It is causing me a lot of problems and I don't even need locale
>>>support in my application, so the best way should be disbling it[/color]
>>
>>The solution may be to set the locale to "C"
>>
>>putenv("LANG=C");
>>setlocale(LC_ALL, "C");
>>
>>at the begin of programm.
>>
>>Regards,
>>
>>Jean-Jacques[/color]
>
>
>
> can I set the value of the environment variable LANG to "C" "off-line"
> and then arrange my program as follows?:
> ***************************************
> . . . *
> int main(int argc, char* argv[]) { *
> . . . *
> XtSetLanguageProc(NULL,NULL,NULL); *
> XtOpenApplication(. . .); *
> . . . *
> } *
> ***************************************
>
> I'm not sure whether I have to use the XtSetLanguageProc or not, that
> is if I have to comment out the line 'XtSetLanguageProc(NULL, NULL,
> NULL);'[/color]
You can set the LANG variable outside of the program. Further
modifications are not necessary XtSetLanguageProc(NULL,NULL,NULL);
will set the internal language environment (used string rendereing
functions, ...) to the proper values.
Regards,
Jean-Jacques