[pygtk] FileChooserDialog and locale
Sebastien Aubry
aubry at cena.fr
Mon Apr 3 21:45:21 WST 2006
Hi,
I have found new elements about my last problem (cf. Can't use
FileChooserButton) :
- FileChooserDialogs are also affected by this problem
- It seems to be linked with my locale, fr_FR: setting the locale to "C"
corrects the problem ... but then, I lose my french strings, so I
redefined the LC_MESSAGES locale to fr_FR :-)
>>> import gtk
>>> gtk.FileChooserDialog()
(.:11740): Pango-WARNING **: Invalid UTF-8 string passed to
pango_layout_set_text()
<gtk.FileChooserDialog object (GtkFileChooserDialog) at 0x401efe14>
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'C')
'C'
>>> gtk.FileChooserDialog()
<gtk.FileChooserDialog object (GtkFileChooserDialog) at 0x401f516c>
--
Sébastien AUBRY - STERIA - DSNA/DTI/SDER/ESV
Atelier de préparation de données de simulation
Tél. : 05 62 25 95 45
More information about the pygtk
mailing list