Alex Martelli
01c77c6628
Anna Ravenscroft identified many occurrences of "file" used to open a file
...
in the stdlib and changed each of them to use "open" instead. At this
time there are no other known occurrences that can be safely changed (in
Lib and all subdirectories thereof).
2006-08-24 02:58:11 +00:00
Martin v. Löwis
b60ae99601
Convert file names of posix.access according to the file system encoding.
2005-03-08 09:10:29 +00:00
Martin v. Löwis
cd24699256
Try a different filename if the Latin-1 file name cannot
...
be represented in the file system. Fixes #989338 .
2004-11-07 19:57:35 +00:00
Raymond Hettinger
3b04ce824d
Patch from Mark Hammond to fix a test error.
...
Now runs without exception on WinME/98.
2004-06-28 06:57:19 +00:00
Nicholas Bastin
668034173b
Normalized files in test_unicode_file to eliminate failure on OSX
2004-03-21 20:55:47 +00:00
Tim Peters
58eb11cf62
Whitespace normalization.
2004-01-18 20:29:55 +00:00
Mark Hammond
2e8624c21a
Fix test_unicode_file errors on platforms without Unicode file support,
...
by setting TESTFN_UNICODE_UNENCODEABLE on these platforms.
test_unicode_file only attempts to use the name for testing if not None.
2003-12-03 22:16:47 +00:00
Mark Hammond
6d459725a3
Add test for bug "[ 846133 ] os.chmod/os.utime/shutil do not work with
...
unicode filenames"
Reorganize tests into functions so more combinations of
unicode/encoded/ascii can be tested, and while I was at it, upgrade to
unittest based test.
2003-12-03 01:29:56 +00:00
Mark Hammond
7edd0a9b21
Demonstrate and fix [ 783882 ] os.lstat crashes with Unicode filename.
...
Will also check in on the 2.3 branch.
2003-08-06 02:46:58 +00:00
Tim Peters
0eadaac7dc
Whitespace normalization.
2003-04-24 16:02:54 +00:00
Martin v. Löwis
c2ca32d9ae
Test for UnicodeError instead of ImportError to determine whether
...
the test file name can be encoded.
2003-03-17 18:30:15 +00:00
Martin v. Löwis
c49435c991
Skip the test if TESTFN_ENCODING is None. Fixes #699386 .
2003-03-08 10:25:31 +00:00
Mark Hammond
c2e85bd4e2
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
2002-10-03 05:10:39 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
2002-07-23 19:04:11 +00:00
Guido van Rossum
eaa0a22f43
Disable code intended for PEP 277.
2002-01-15 21:25:51 +00:00
Mark Hammond
e843e482ce
Ensure Unicode filenames work with glob - they already do, but the test seems worth keeping.
2002-01-07 02:11:43 +00:00
Martin v. Löwis
7c82a3e0fc
Patch #449815 : Set filesystemencoding based on CODESET.
2001-09-05 17:09:48 +00:00
Mark Hammond
ef8b654bbe
Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
2001-05-13 08:04:26 +00:00