[New-bugs-announce] [issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

zoupl report at bugs.python.org
Sun Jul 15 03:50:27 CEST 2012


New submission from zoupl <zoupengli at gmail.com>:

Compile python (from 2.4.6 to version 2.6.8) on solaris 5.10 sparc using gcc 3.4.6. When using UTf-8, the \xa0 is a space. Howeve this is wrong. Version 2.7 is OK.

>>> 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

----------
components: Unicode
messages: 165486
nosy: ezio.melotti, zoupl
priority: normal
severity: normal
status: open
title: '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15356>
_______________________________________


More information about the New-bugs-announce mailing list