Message74593
I think attached patch "fix_getfullpathname.patch" will fix unicode
issue at least. For ansi issue, I followed the manner of win32_chdir for
now.
After some investigation, GetFullPathNameA fails if output size is more
than MAX_PATH even if input size is less than MAX_PATH. I feel it's
difficult check this before invoking GetFullPathNameA.
This is test for unicode issue.
/////////////////////////////////////////////////////////
import unittest
import ntpath
import os
class TestCase(unittest.TestCase):
def test_getfullpathname(self):
for count in xrange(1, 1000):
name = u"x" * count
path = ntpath._getfullpathname(name)
self.assertEqual(os.path.basename(path), name)
if __name__ == '__main__':
unittest.main() |
|
Date |
User |
Action |
Args |
2008-10-09 18:37:39 | ocean-city | set | recipients:
+ ocean-city, amaury.forgeotdarc, JDay |
2008-10-09 18:37:39 | ocean-city | set | messageid: <1223577459.46.0.813505611264.issue4071@psf.upfronthosting.co.za> |
2008-10-09 18:37:38 | ocean-city | link | issue4071 messages |
2008-10-09 18:37:37 | ocean-city | create | |
|