This commit is contained in:
Kovid Goyal 2008-08-30 22:33:09 -07:00
parent 5e494d0f80
commit 964727579f

View File

@ -322,7 +322,7 @@ class LoggingInterface:
def strftime(fmt, t=time.localtime()):
''' A version of strtime that returns unicode strings. '''
if iswindows:
return plugins['winutil'].strftime(unicode(fmt, preferred_encoding), t)
return plugins['winutil'][0].strftime(unicode(fmt, preferred_encoding), t)
return time.strftime(fmt, t).decode(preferred_encoding, 'replace')
def entity_to_unicode(match, exceptions=[], encoding='cp1252'):