GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)

[Python-Dev] PEP 540: Add a new UTF-8 mode (v2)

Nick Coghlan ncoghlan at gmail.com
Wed Dec 6 19:31:04 EST 2017

  • Previous message (by thread): [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • Next message (by thread): [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On 7 December 2017 at 01:59, Jakub Wilk <jwilk at jwilk.net> wrote:
> * Nick Coghlan <ncoghlan at gmail.com>, 2017-12-06, 16:15:
>> The one that's relevant to default locale detection is just the string
>> that "setlocale(LC_CTYPE, NULL)" returns.
>
> POSIX doesn't require any particular return value for setlocale() calls.
> It's only guaranteed that the returned string can be used in subsequent
> setlocale() calls to restore the original locale.
>
> So in the POSIX locale, a compliant setlocale() implementation could return
> "C", or "POSIX", or even something entirely different.

Thanks. I'd been wondering if we should also handle the "POSIX" case
in the legacy locale detection logic, and you've convinced me that we
should. Issue filed for that here: https://bugs.python.org/issue32238

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

  • Previous message (by thread): [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • Next message (by thread): [Python-Dev] PEP 540: Add a new UTF-8 mode (v2)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.