Updates:
Summary: Reporting library import error fails with UnicodeDecodeError if
PYTHONPATH contains non-ASCII paths
Status: Started
Owner: pekka.klarck
Labels: Priority-Medium Target-2.7.1
Comment #3 on issue 1092 by pekka.klarck: Reporting library import error
fails with UnicodeDecodeError if PYTHONPATH contains non-ASCII paths
http://code.google.com/p/robotframework/issues/detail?id=1092
Yeah, running tests from a directory that has non-ASCII characters or
having such a directory otherwise in PYTHONPATH caused the problem.
When the problem occurs, importing the library has failed and Robot tries
to report it so that the error message contains also the contents of
PYTHONPATH. The bug in Robot is that it doesn't handler non-ASCII values in
PYTHONPATH correctly in that case. This is pretty easy to fix by decoding
non-ASCII paths using the system encoding before adding them to the error
message.