Title: '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6
Type: behavior Stage: resolved
Components: Unicode Versions: Python 2.6
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, r.david.murray, zoupl
Priority: normal Keywords:

Created on 2012-07-15 01:50 by zoupl, last changed 2012-07-16 01:02 by zoupl. This issue is now closed.

Messages (7)
msg165486 - (view) Author: (zoupl) Date: 2012-07-15 01:50
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')
>>> assert s.strip() == s
msg165490 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-07-15 02:45
2.6 only gets security fixes at this point, which this is not.
msg165491 - (view) Author: (zoupl) Date: 2012-07-15 02:53
Could you please tell me the way to deal with this is version 2.7?
msg165526 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-07-15 12:59
I'm sorry, It looks like you said it was working as you expected in 2.7, and you marked it for version 2.6.  So what is the bug that you see in 2.7?
msg165528 - (view) Author: (zoupl) Date: 2012-07-15 13:18
No, i mean it works ok on version 2.7. However, what I want to know is the way that works in version2.7, because I want to try to fix it in version 2.6.
msg165532 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-07-15 15:18
Ah.  I have no idea.  I did a search and could not find an issue about it being fixed...that doesn't mean there wasn't one, though.

Does the problem occur *only* solaris?  Because if it isn't solaris specific it might be this one: issue 1571184.
msg165562 - (view) Author: (zoupl) Date: 2012-07-16 01:02
I have just tried on solaris. I will try the solution of issue 1571184, thanks a lot.
Date User Action Args
2012-07-16 01:02:00zouplsetmessages: + msg165562
2012-07-15 15:18:50r.david.murraysetmessages: + msg165532
2012-07-15 13:18:18zouplsetmessages: + msg165528
2012-07-15 12:59:44r.david.murraysetmessages: + msg165526
2012-07-15 02:53:41zouplsetmessages: + msg165491
2012-07-15 02:45:06r.david.murraysetstatus: open -> closed

type: behavior

nosy: + r.david.murray
messages: + msg165490
resolution: out of date
stage: resolved
2012-07-15 01:50:26zouplcreate