logilab-common #109740 string conversion bug in date.py when given a month with an accented character (e.g. "d├ęcembre") [done]

Trying to read in UTF-8 the month written in Latin-1.

Traceback, when setting, in Documentor, a month which gets to be written with a Latin-1 accented character :
File "[...]/logilab/common/date.py", line 294, in ustrftime
return unicode(somedate.strftime(str(fmt)), encoding)
File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 1: invalid continuation byte

appeared in<not specified>
done in0.58.3
load left0.000
closed by#97da24fddab9 ustrftime: ask the system for the encoding instead of trying to guess