Skip to content

pyport.h includes antiquated UTF handling for FreeBSD #59567

Description

@JohnSchneider
BPO 15362
Nosy @birkenfeld, @ezio-melotti, @skrah
Files
  • patch-pyport.h: pyport.h patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2013-10-13.18:24:39.552>
    created_at = <Date 2012-07-15.21:19:21.794>
    labels = ['ctypes', 'expert-unicode']
    title = 'pyport.h includes antiquated UTF handling for FreeBSD'
    updated_at = <Date 2013-10-13.18:24:39.551>
    user = 'https://bugs.python.org/JohnSchneider'

    bugs.python.org fields:

    activity = <Date 2013-10-13.18:24:39.551>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-10-13.18:24:39.552>
    closer = 'georg.brandl'
    components = ['Unicode', 'ctypes']
    creation = <Date 2012-07-15.21:19:21.794>
    creator = 'JohnSchneider'
    dependencies = []
    files = ['26388']
    hgrepos = []
    issue_num = 15362
    keywords = []
    message_count = 3.0
    messages = ['165550', '180131', '199750']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'ezio.melotti', 'skrah', 'JohnSchneider']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue15362'
    versions = ['Python 2.7']

    Activity

    1. JohnSchneider commented on Jul 15, 2012

      JohnSchneidermannequin
      MannequinAuthor

      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.

    2. skrah commented on Jan 17, 2013

      skrahmannequin
      Mannequin

      Does this apply to Python 3.3 as well? I don't think we're going to
      fix this in 2.7.

    3. birkenfeld commented on Oct 13, 2013

      @birkenfeld
      Member

      Closing due to lack of feedback.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions