Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 676
    • Issues 676
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • pypypypy
  • Issues
  • #3165
Closed
Open
Issue created 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
Time tracking