

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
5 messages in org.python.python-bugs-list[ python-Bugs-924703 ] test_unicode_f...| From | Sent On | Attachments |
|---|---|---|
| SourceForge.net | Mar 27, 2004 8:48 pm | |
| SourceForge.net | Mar 29, 2004 5:16 pm | |
| SourceForge.net | Mar 29, 2004 6:11 pm | |
| SourceForge.net | Mar 30, 2004 12:24 am | |
| SourceForge.net | Mar 30, 2004 12:44 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [ python-Bugs-924703 ] test_unicode_file fails on Win98SE | Actions... |
|---|---|---|
| From: | SourceForge.net (nore...@sourceforge.net) | |
| Date: | Mar 29, 2004 6:11:04 pm | |
| List: | org.python.python-bugs-list | |
Bugs item #924703, was opened at 2004-03-27 20:48 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924703&group_id=5470
Category: Unicode Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Tim Peters (tim_one) Assigned to: M.-A. Lemburg (lemburg) Summary: test_unicode_file fails on Win98SE
Initial Comment: In current CVS, test_unicode_file fails on Win98SE. This has been going on for some time, actually.
ERROR: test_single_files (__main__.TestUnicodeFiles)
Traceback (most recent call last): File ".../lib/test/test_unicode_file.py", line 162, in test_single_files self._test_single(TESTFN_UNICODE) File ".../lib/test/test_unicode_file.py", line 136, in _test_single self._do_single(filename) File ".../lib/test/test_unicode_file.py", line 49, in _do_single new_base = unicodedata.normalize("NFD", new_base) TypeError: normalized() argument 2 must be unicode, not str
At this point,
filename is TESTFN_UNICODE is u'@test-\xe0\xf2'
os.path.abspath(filename) is 'C:\Code\python\PC\VC6\@test-\xe0\xf2'
new_base is '@test-\xe0\xf2
So abspath() removed the "Unicodeness" of filename, and new_base is indeed not a Unicode string at this point.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2004-03-29 18:11
Message: Logged In: YES user_id=31435
Nope, that can't help -- ntpath.py's _abspath doesn't exist on Win98SE (the "from nt import _getfullpathname" succeeds, so _abspath is never defined). It's _getfullpathname() that's taking a Unicode input and returning a str output here.
----------------------------------------------------------------------
Comment By: Martin v. L?wis (loewis) Date: 2004-03-29 17:17
Message: Logged In: YES user_id=21627
abspath(unicode) should return a Unicode path.
Does it help if _abspath (in ntpath.py) is changed to contain
if not isabs(path): if isinstance(path, unicode): cwd = os.getcwdu() else: cwd = os.getcwd() path = join(cwd, path)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924703&group_id=5470







