Tom Smith wrote:
>> Once you call setlocale(LC_ALL, ""), the strerror() value that comes
>> back should be localized. That said, Mac OS X inexplicably does not
>> localize strerror at all, so if you are testing on Mac OS X your
>> error dialog message won't be localized...
>
> I tried that, it does not seem to work. I'm on Windows using mingw/msys with
> FLTK 1.3 I can set the locale and then check it to see that it has been set,
> but the 'Permission denied' error message always appears in English.
>
> I'm doing this:
>
> // Set to Spanish
> std::setlocale(LC_ALL, "spanish");
This should be "es", not "spanish".
That said, I'm not sure the MingW provides localized POSIX error
messages, either...
> // Check Locale
> if ( build::mode == "debug" )
> {
> fl_alert(std::setlocale(LC_ALL,0));
> }
>
> That second bit of code prints this:
>
> Spanish_Spain.1252
>
> Any other suggestions?
>
>
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk