Show
Ignore:
Timestamp:
04/27/10 23:38:18 (14 years ago)
Author:
jerome
Message:

Ensures that all command lines are properly encoded before calling
os.system() on them from the cupspykota backend wrapper.
TODO : check command line tools for the same potential problem.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r3489 r3545  
    486486    def externalMailTo(self, cmd, action, user, printer, message) : 
    487487        """Warns the user with an external command.""" 
     488        cmd = cmd.encode(self.charset, "replace") 
    488489        message = message.encode(self.charset, "replace") 
    489490        username = user.Name