win32: windows strip off last space from filename
Alexander Belchenko
bialix at ukr.net
Sat Jul 1 20:49:37 BST 2006
I have windows 2000 on FAT32. The same behaviour with cygwin on the same FS.
>>> import os
>>> os.listdir('.')
[]
>>> f = file('with space at end ', 'wb')
>>> f.write('spam')
>>> f.close()
>>> f
<closed file 'with space at end ', mode 'wb' at 0x009144E8>
>>> os.listdir('.')
['with space at end']
>>> import os
>>> os.listdir('.')
[]
>>> f = file('with space and dot . ', 'wb')
>>> f.write('spam')
>>> f.close()
>>> f
<closed file 'with space and dot . ', mode 'wb' at 0x009144E8>
>>> os.listdir('.')
['with space and dot']
>>> os.listdir('.')
[]
>>> f = file('with space and dot .txt', 'wb')
>>> f.write('spam')
>>> f.close()
>>> f
<closed file 'with space and dot .txt', mode 'wb' at 0x0093E9B0>
>>> os.listdir('.')
['with space and dot .txt']
I was check this behaviour with simple C program. The same result.
To John, Aaron: that's why test_bundle fails on win32.
--
Alexander
More information about the bazaar
mailing list