Issue 7072: isspace(0xa0) is true on Mac OS X (original) (raw)

Issue7072

Created on 2009-10-06 14:07 by methane, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue7072.patch ronaldoussoren,2010-03-07 12:10
Messages (3)
msg93650 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2009-10-06 14:07
Old FreeBSD's libc has a bug relate to utf-8 locale and Python have patch for it: http://svn.python.org/view/python/trunk/Include/pyport.h? view=diff&pathrev=43219&r1=36792&r2=36793 This bug appears in Mac OS X again. This test fails: >>> s = '\xa0' >>> assert s.strip() == s >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'en_US.UTF-8' >>> assert s.strip() == s So above patch should be enabled for Mac OS X.
msg100575 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-03-07 12:10
I've attached a patch that fixes the issue and enables all test_locale tests on OSX 10.6. (I will test if the tests can also be enabled on 10.5 when applying the patch).
msg103494 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-04-18 15:12
Fixed in r80178 (trunk), r80180 (2.6), r80182 (3.2), r80183 (3.1)
History
Date User Action Args
2022-04-11 14:56:53 admin set github: 51321
2010-04-18 15:12:12 ronaldoussoren set status: open -> closedresolution: accepted -> fixedmessages: + stage: resolved
2010-03-20 18:38:31 jafo set priority: normal
2010-03-07 12:10:46 ronaldoussoren set keywords: + needs review, patchfiles: + issue7072.patchresolution: acceptedmessages: +
2009-11-10 18:41:31 ned.deily set assignee: ronaldoussorennosy: + ronaldoussorencomponents: + macOSversions: - Python 3.0
2009-10-06 14:07:44 methane create