Author nkour
Recipients
Date 2005-11-13.22:43:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=865368

python itself uses this func,

I don't even ask getlocale()!

I just do:

time.strptime(tim, '%Y%m%dT%H:%M:%S')

somewhere and enjoy:

time.strptime(tim, '%Y%m%dT%H:%M:%S')
  File "/usr/lib/python2.4/_strptime.py", line 269, in ?
    _TimeRE_cache = TimeRE()
  File "/usr/lib/python2.4/_strptime.py", line 188, in __init__
    self.locale_time = LocaleTime()
  File "/usr/lib/python2.4/_strptime.py", line 73, in __init__
    self.lang = _getlang()
  File "/usr/lib/python2.4/_strptime.py", line 32, in _getlang
    return locale.getlocale(locale.LC_TIME)
  File "/usr/lib/python2.4/locale.py", line 363, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.4/locale.py", line 278, in
_parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: eu_ES

so basque feels like he's ATIA here
History
Date User Action Args
2008-01-20 09:57:55adminlinkissue1223976 messages
2008-01-20 09:57:55admincreate