[Buildbot-devel] UnicodeDecodeError in webfrontend
Dustin J. Mitchell
dustin at v.igoro.us
Fri Mar 1 19:51:22 UTC 2013
That's very odd. I don't see why Python would be attempting to
*decode* a bytestring in
time = time.strftime("%a %d %b %Y %H:%M:%S",
time.localtime(util.now())),
util.now() returns an int or float. localtime returns a tuple of nine
integers. And strftime *generates* strings.
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
'de_DE.UTF-8'
>>> strftime("%a %d %b %Y %H:%M:%S", localtime())
'Fr 01 M\xc3\xa4r 2013 20:48:27'
>>> dict(time=strftime("%a %d %b %Y %H:%M:%S", localtime()))
{'time': 'Fr 01 M\xc3\xa4r 2013 20:49:57'}
Anyone else see what I'm missing?
DUsti
More information about the devel
mailing list