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

2014-07-20 Thread StupidHod
StupidHod added the comment: You are correct,the resultpath is unicode and path is str.Tks for your comments. 2014-07-21 10:15 GMT+08:00 Ezio Melotti : > > Ezio Melotti added the comment: > > Agreed. Make sure that the arguments you are passing to ntpath.join() > have the same type (i.e. eithe

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

2014-07-20 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed. Make sure that the arguments you are passing to ntpath.join() have the same type (i.e. either both unicode, or both string). -- nosy: +ezio.melotti resolution: -> not a bug stage: -> resolved status: open -> closed

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

2014-07-20 Thread Zachary Ware
Zachary Ware added the comment: What type are your arguments, str, unicode, or a mix? I can reproduce your issue using a unicode and a str containing a non-ASCII character, while any other combination "works": >>> import os >>> os.path.join('test', 'test\x85') 'test\\test\x85' >>> os.path.joi

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

2014-07-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

2014-07-20 Thread StupidHod
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