naparuba/shinken — comment on commit 84c6284bb72c3f6912999d4a14d007dda8054c89
File: shinken/util.py line 53
By vaxvms:

Strange ... I'm running python 2.7.2. Without the patch, i get this backtrace :
Back trace of it: Traceback (most recent call last):
File "/opt/shinken-saturne/shinken/daemons/arbiterdaemon.py", line 451, in main
self.do_mainloop()
File "/opt/shinken-saturne/shinken/daemon.py", line 195, in do_mainloop
self.do_loop_turn()
File "/opt/shinken-saturne/shinken/daemons/arbiterdaemon.py", line 490, in do_loop_turn
self.run()
File "/opt/shinken-saturne/shinken/daemons/arbiterdaemon.py", line 639, in run
self.external_command.resolve_command(ext_cmd)
File "/opt/shinken-saturne/shinken/external_command.py", line 288, in resolve_command
self.get_command_and_args(command)
File "/opt/shinken-saturne/shinken/external_command.py", line 323, in get_command_and_args
safe_print("Trying to resolve", command)
File "/opt/shinken-saturne/shinken/util.py", line 55, in safe_print
s = unicode(e, 'utf8')
File "/opt/python27/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xcb in position 42: invalid continuation byte