[ python-Bugs-1455641 ] pyport.h freebsd inconsistent

SourceForge.net noreply at sourceforge.net
Wed Mar 22 09:55:13 CET 2006


Bugs item #1455641, was opened at 2006-03-22 05:43
Message generated for change (Comment added) made by perky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1455641&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Hye-Shik Chang (perky)
Summary: pyport.h freebsd inconsistent

Initial Comment:
pyport.h redefines isalnum and friends 

#if __FreeBSD_version > 500039

but the comment just above says not to do so in 
FreeBSD 6 (which is now available).  Add an extra 
guard clause?


----------------------------------------------------------------------

>Comment By: Hye-Shik Chang (perky)
Date: 2006-03-22 17:55

Message:
Logged In: YES 
user_id=55188

The workaround is still needed for FreeBSD 6 and 7 even.

>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
'de_DE.UTF-8'
>>> import ctypes
>>> ctypes.cdll.c.isspace(0xa0)
1

This should be 0 to get a correct result from str.split.
I fixed the comment in r43219.  Thank you!

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2006-03-22 16:54

Message:
Logged In: YES 
user_id=849994

perky, you added that comment to pyport.h.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1455641&group_id=5470


More information about the Python-bugs-list mailing list