Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pypy
pypy
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 594
    • Issues 594
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 10
    • Merge Requests 10
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

This instance will be upgraded to the latest Heptapod 0.20rc on 2021-02-26 at 11:00 UTC+1

  • PyPy
  • pypypypy
  • Issues
  • #3165

Closed
Open
Opened Feb 04, 2020 by Bitbucket Importer@bitbucket_importerMaintainer

PyPy should set `errors="surrogatepass"` when decoding numpy arrays to unicode scalars

Created originally on Bitbucket by ericwieser (Eric Wieser)

See https://github.com/numpy/numpy/issues/15363, where the bug was reported in numpy.

The fix in numpy was to replace calls to PyUnicode_DecodeUTF32 with calls to PyUnicode_FromKindAndData(PyUnicode_4BYTE_KIND, ...).

However, it seems that PyPI does not use our code there, and has their own implementation. Assuming PyUnicode_FromKindAndData is not available, the equivalent python code would be some_bytes.decode('utf-32-le', errors='surrogatepass').

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pypy/pypy#3165