id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 5778,Codepages bug in macros,OXIj,Christian Boos,"Example macro fails with unicode error on Russian UTF-8 locale. {{{ class TimestampMacro(WikiMacroBase): """"""Inserts the current time (in seconds) into the wiki page."""""" def expand_macro(self, formatter, name, args): t = time.localtime() return tag.b(time.strftime('%c', t)) }}} this code resolved the problem: {{{ class TimestampMacro(WikiMacroBase): """"""Inserts the current time (in seconds) into the wiki page."""""" def expand_macro(self, formatter, name, args): t = time.localtime() return tag.b(unicode(time.strftime('%c', t), ""utf-8"")) }}} but it shold be written better (with locale checking), and some other macros may have this bug too",defect,closed,low,0.11,wiki system,,trivial,fixed,unicode datetime locale,,,,,