Skip to content

PyUnicode_FromFormatV("%c") doesn't support non-BMP characters on narrow build #55039

Closed

Description

@vstinner
BPO 10830
Nosy @amauryfa, @vstinner
Files
  • pyunicode_fromformatv_c.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 2011-02-23.12:14:35.375>
    created_at = <Date 2011-01-05.01:43:11.459>
    labels = ['interpreter-core', 'expert-unicode']
    title = 'PyUnicode_FromFormatV("%c") doesn\'t support non-BMP characters on narrow build'
    updated_at = <Date 2011-02-23.12:14:35.374>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2011-02-23.12:14:35.374>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-02-23.12:14:35.375>
    closer = 'vstinner'
    components = ['Interpreter Core', 'Unicode']
    creation = <Date 2011-01-05.01:43:11.459>
    creator = 'vstinner'
    dependencies = []
    files = ['20265']
    hgrepos = []
    issue_num = 10830
    keywords = ['patch']
    message_count = 3.0
    messages = ['125393', '128997', '129181']
    nosy_count = 2.0
    nosy_names = ['amaury.forgeotdarc', 'vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue10830'
    versions = ['Python 3.2', 'Python 3.3']

    Activity

    1. vstinner commented on Jan 5, 2011

      @vstinner
      MemberAuthor

      PyUnicode_FromFormatV("%c") supposes that an unicode character is always stored as a single Py_UNICODE word: but that's wrong on narrow build with characters in [U+10000; U+10FFFF].

      Attached patch fixes this bug.

      See also bpo-10829.

    2. vstinner commented on Feb 21, 2011

      @vstinner
      MemberAuthor

      Fixed in 3.3 (r88481).

      Keep it open to backport it maybe to 3.2 later.

    3. vstinner commented on Feb 23, 2011

      @vstinner
      MemberAuthor

      Fixed in 3.2 too (r88532).

    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

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions