This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sandberg
Recipients sandberg
Date 2009-07-09.18:49:54
SpamBayes Score 5.4547094e-08
Marked as misclassified No
Message-id <1247165396.23.0.921821362773.issue6450@psf.upfronthosting.co.za>
In-reply-to
Content
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
parameters to be Unicode. 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?
History
Date User Action Args
2009-07-09 18:49:56sandbergsetrecipients: + sandberg
2009-07-09 18:49:56sandbergsetmessageid: <1247165396.23.0.921821362773.issue6450@psf.upfronthosting.co.za>
2009-07-09 18:49:55sandberglinkissue6450 messages
2009-07-09 18:49:54sandbergcreate