Hi,

Thomas Heller wrote:
The most important problem, IMO, is now that wide filenames on Windows are not
implemented, see the code starting at line 148 in _fileio.c.  This prevents
most unittests to run because test_support cannot be imported:

C:\svn\py3k-struni\PCbuild>python  -E -tt ../lib/test/regrtest.py
Traceback (most recent call last):
  File "../lib/test/regrtest.py", line 165, in <module>
    from test import test_support
  File "C:\svn\py3k-struni\lib\test\test_support.py", line 182, in <module>
    fp = open(TESTFN, 'w+')
  File "C:\svn\py3k-struni\lib\site.py", line 412, in __new__
    return io.open(*args, **kwds)
  File "C:\svn\py3k-struni\lib\io.py", line 122, in open
    (updating and "+" or ""))
NotImplementedError: Windows wide filenames are not yet supported

The attached patch corrects this. Now open() accept both unicode
strings and bytes objects.

--
Amaury Forgeot d'Arc

Attachment: fileio-1.diff
Description: Binary data

_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to