Commit 21164ce8 authored by Florent Xicluna's avatar Florent Xicluna

#8133: Use appropriate Unicode decomposition on MacOS X platform.

parent abd91d5f
......@@ -104,7 +104,14 @@ class ImportTests(unittest.TestCase):
'cp1258' : b'\xc0',
}
if sys.platform == 'darwin':
self.assertEqual(fs_encoding, 'utf-8')
# Mac OS X uses the Normal Form D decomposition
# http://developer.apple.com/mac/library/qa/qa2001/qa1173.html
special_char = b'a\xcc\x88'
else:
special_char = known_locales.get(fs_encoding)
if not special_char:
self.skipTest("can't run this test with %s as filesystem encoding"
% fs_encoding)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment