[issue22019] ntpath.join() error with Chinese character Path
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 <http://bugs.python.org/issue22019> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22019] ntpath.join() error with Chinese character Path
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. either both unicode, or both string). > > -- > nosy: +ezio.melotti > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > ___ > Python tracker > <http://bugs.python.org/issue22019> > ___ > -- ___ Python tracker <http://bugs.python.org/issue22019> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com