[New-bugs-announce] [issue15362] pyport.h includes antiquated UTF handling for FreeBSD

John Schneider report at bugs.python.org
Sun Jul 15 23:19:22 CEST 2012


New submission from John Schneider <js at jschneider.com>:

Revision 36793 introduced a libc wrapper for FreeBSD 5.x which addressed some UTF issues. Unfortunately, this causes C compilation errors for certain ports.

Also reference issues 10910, 1455641

This change is no longer applicable for FreeBSD 9.  I'm not sure what version of FreeBSD made it not longer applicable, but there were reports of it still being necessary for FreebSD 7. FreeBSD 6 - 8 should be tested with this test script:
------------------------
#!/usr/bin/env python

from ctypes import *

cdll.LoadLibrary("libc.so.7")
libc = CDLL("libc.so.7")

assert libc.isspace(0xa0) == 0
------------------------

I've also attached a patch for python 2.7.3.

----------
components: Unicode, ctypes
files: patch-pyport.h
messages: 165550
nosy: JohnSchneider, ezio.melotti
priority: normal
severity: normal
status: open
title: pyport.h includes antiquated UTF handling for FreeBSD
versions: Python 2.7
Added file: http://bugs.python.org/file26388/patch-pyport.h

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


More information about the New-bugs-announce mailing list