[issue6450] normpath() sometimes maps unicode to str

2009-11-13 Thread Ezio Melotti
Ezio Melotti added the comment: Closing this as duplicate of #5827. -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed superseder: -> os.path.normpath doesn't preserve unicode ___ Python tracker

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Do the standard Python library functions that > operate on strings guarantee anything in general with respect to > conserving unicode? Can I make any assumption as to which codec was used > to encode the str returned from normpath? The bug tracker is not rea

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti priority: -> normal stage: -> test needed versions: +Python 2.7 ___ Python tracker ___

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Erik Sandberg
New submission from Erik Sandberg : On Linux, I get the following: >>> import os >>> os.path.normpath(u'/') '/' I would expect unicode to be mapped to unicode. os.path.abspath() has the same problem, see also issue 3426. This causes problems in my project, where a function requires its paramet