New submission from STINNER Victor <victor.stin...@haypocalc.com>:

r80137 (PEP 3147) introduced a test in test_site. The test fails on non-ASCII 
directory because stdout uses ASCII whereas the directories contains non-ASCII 
characters.

http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 3.x/builds/848

Attached patch is a workaround to this issue. The path is encoded to ASCII 
using backslashreplace error handler. But the patch is not perfect, it should 
use the reverse operation to get the path as an unicode string. But I don't 
know how to implement the reverse operation of .encode("ascii", 
"backslashreplace").

----------
files: test_site.patch
keywords: buildbot, patch
messages: 103400
nosy: haypo
severity: normal
status: open
title: test_site failure with non-ASCII directory
versions: Python 3.2
Added file: http://bugs.python.org/file16959/test_site.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to