On Fri, Dec 08, 2000 at 05:06:34PM +0900, 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

How about this?

import os
os.environ['LC_ALL'] = 'ja_JP.ujis'
import gtk


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

Reply via email to