[issue22019] ntpath.join() error with Chinese character Path

StupidHod report at bugs.python.org
Mon Jul 21 02:49:15 CEST 2014


New submission from StupidHod:

When ntpath.join() works with a path that with Chinese character ,a unicode Decode error will happen.
detailes as:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 0: ordinal not in range(128)

As the interparter said,it happened at
result_path = result_path + p_path line 84.

as I modif this expression with "result_path = str(result_path) + str(p_path)",it works well.

----------
components: Library (Lib)
messages: 223552
nosy: StupidHod
priority: normal
severity: normal
status: open
title: ntpath.join() error with Chinese character Path
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22019>
_______________________________________


More information about the Python-bugs-list mailing list