Show
Ignore:
Timestamp:
01/30/08 13:56:28 (16 years ago)
Author:
jerome
Message:

Fixed some character encoding problems when CUPS' locale was not C : my
earlier tests didn't take this into account.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/loggers/system.py

    r3275 r3306  
    2323"""This module defines a class for PyKota logging through syslog.""" 
    2424 
     25import sys 
    2526import os 
    2627import syslog 
     
    4748                           syslog.LOG_DEBUG) 
    4849        syslog.syslog(priority, "(PID %s) : %s" \ 
    49                                       % (os.getpid(), message.strip())) 
     50                                      % (os.getpid(), message.strip().encode(sys.stdout.encoding or "UTF-8", "replace")))