[issue22690] importing Gtk breaks strptime

2014-10-23 Thread Sigz
Changes by Sigz : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22690] importing Gtk breaks strptime

2014-10-23 Thread Sigz
Sigz added the comment: Ok seems you were right, I was not applying any locale, forcing to locale.setlocale(locale.LC_ALL, 'en_US.utf8') resolved the issue. -- ___ Python tracker __

[issue22690] importing Gtk breaks strptime

2014-10-21 Thread R. David Murray
R. David Murray added the comment: What locale are you using? Is it possible importing Gtk makes that locale operative? (In which case, that would be a bug in either Gtk or its wrapper). -- nosy: +r.david.murray ___ Python tracker

[issue22690] importing Gtk breaks strptime

2014-10-21 Thread Sigz
New submission from Sigz: I usually convert date string to time with strptime formating. I noticed importing Gtk breaks strptime parsing for abbreviated month name and weekday name : >>> import time >>> time.strptime("Mon, 20 Oct 2014 08:00:32 +", "%a, %d %b %Y %H:%M:%S %z") time.struct_ti