Changeset 450


Ignore:
Timestamp:
22-05-11 12:58:36 (2 years ago)
Author:
thomas
Message:
  • morituri/result/logger.py: Always write strftime in C locale. Fixes second bug mentioned in #49.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r449 r450  
     12011-05-22  Thomas Vander Stichele  <thomas at apestaart dot org> 
     2 
     3        * morituri/result/logger.py: 
     4          Always write strftime in C locale.  Fixes second bug 
     5          mentioned in #49. 
     6 
    172011-05-21  Thomas Vander Stichele  <thomas at apestaart dot org> 
    28 
  • trunk/morituri/result/logger.py

    r284 r450  
    4040 
    4141        lines.append("Logfile created by: morituri %s" % configure.version) 
     42        # FIXME: when we localize this, see #49 to handle unicode properly. 
     43        import locale 
     44        old = locale.getlocale(locale.LC_TIME) 
     45        locale.setlocale(locale.LC_TIME, 'C') 
    4246        date = time.strftime("%b %d %H:%M:%S", time.localtime(epoch)) 
     47        locale.setlocale(locale.LC_TIME, old) 
    4348        lines.append("Logfile created on: %s" % date) 
    4449        lines.append("") 
Note: See TracChangeset for help on using the changeset viewer.