This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pyport.h freebsd inconsistent
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: hyeshik.chang Nosy List: georg.brandl, hyeshik.chang, jimjjewett
Priority: normal Keywords:

Created on 2006-03-21 20:43 by jimjjewett, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg27839 - (view) Author: Jim Jewett (jimjjewett) Date: 2006-03-21 20:43
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?
msg27840 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-22 07:54
Logged In: YES 
user_id=849994

perky, you added that comment to pyport.h.
msg27841 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2006-03-22 08:55
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!
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43068
2006-03-21 20:43:56jimjjewettcreate