Skip to content

GraalPy and CPython show different database entries for same locale #521

@skirpichev

Description

@skirpichev

I'm certainly not an expert on the locale module, but this seems odd, especially on the same system.

Example:

Python 3.13.5 (tags/v3.13.5:6cb20a219a, Jun 27 2025, 19:37:25) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
'ru_RU.UTF-8'
>>> locale.localeconv()['thousands_sep']
'\u202f'

vs

Python 3.11.7 (Wed Apr 02 19:57:13 UTC 2025)
[Graal, Oracle GraalVM, Java 24.0.1 (amd64)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
'ru_RU.UTF-8'
>>> locale.localeconv()['thousands_sep']
'\xa0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy