On Fri, 8 Dec 2000, Glen Malley wrote:

> James Henstridge wrote:
> > 
> > You could try using the locale.setlocale() function.  Eg:
> >   import locale
> >   locale.setlocale(locale.LC_MESSAGES, 'ja_JP.ujis')
> > 
> > (or maybe LC_ALL).  If you set the locale to '', it will look up the
> > environment.
> 
> Unfortunately this doesn't work. I think I forgot to mention
> that my intention is to have the application set the locale
> regardless of the user's current locale settings.
> So defaulting to the environment the interpreter is running
> in is no good. As I mentioned before, setting the environment
> beforehand DOES work..but is not a good solution.
> 
> locale.setlocale doesn't do anything, as far as I can see =P

Well, setlocale(LC_ALL, 'whatever') should be forcing the locale to
'whatever'.  At least, it does with python 2.0.  It calls the libc
setlocale function.

James.


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to