Author: pekka.klarck
Date: Tue Jun  9 12:12:27 2009
New Revision: 2022

Modified:
   trunk/src/robot/output/debugfile.py

Log:
handle unicode also elsewhere than in log messages, most notable handle them in arguments (issue 338)

Modified: trunk/src/robot/output/debugfile.py
==============================================================================
--- trunk/src/robot/output/debugfile.py (original)
+++ trunk/src/robot/output/debugfile.py Tue Jun  9 12:12:27 2009
@@ -78,7 +78,7 @@

     def log_message(self, msg):
         if self._is_logged(msg.level):
-            self._write(utils.unic(msg.message).encode('UTF-8').rstrip())
+            self._write(msg.message)

     def close(self):
         if not self._file.closed:
@@ -104,6 +104,6 @@
     def _write(self, text, separator=False):
         if self._separator_written_last and separator:
             return
-        self._file.write(text + '\n')
+        self._file.write(utils.unic(text).encode('UTF-8').rstrip() + '\n')
         self._file.flush()
         self._separator_written_last = separator

Reply via email to