[issue37198] _parse_localename fail to parse 'en_IL'

2021-12-04 Thread Christian Heimes


Change by Christian Heimes :


--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2021-12-03 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I confirmed that it works on 3.9 so I think this can be closed as not a bug:

[ins] In [4]: _parse_localename('en_IL')
Out[4]: ('en_IL', 'UTF-8')

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
versions: +Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2021-07-06 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Note the traceback is from 2.7, which is not supported. Hodai: Can you verify 
it on a 3.6-3.11 release?

--
nosy: +andrei.avk
versions:  -Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2021-02-23 Thread Eryk Sun


Change by Eryk Sun :


--
Removed message: https://bugs.python.org/msg345454

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2020-05-28 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
stage: patch review -> needs patch
versions: +Python 3.10 -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-12 Thread Eryk Sun


Eryk Sun  added the comment:

Windows prefers locale names based on RFC 4646 language tags, which use a 
hyphen instead of an underscore (e.g. "en-UK"). This name format doesn't 
include an encoding. The C runtime (not the Windows API) makes one exception to 
support ".utf8" and ".utf-8" (e.g. "en-UK.utf8"). If UTF-8 is not specified, 
setlocale implicitly uses the ANSI codepage of the given locale (which is not 
to be confused with the ANSI codepage of the system locale).

As noted in this issue, _parse_localename currently fails if there's no 
encoding. hodai's PR 14027 addresses this case by looking for underscore in the 
name. In Windows, it should also look for hyphen. Also, instead of using None 
for the encoding in this case, in Windows we can look it up via 
___lc_codepage_func [1]. This could be added as _locale._lc_codepage_func.

[1] 
https://docs.microsoft.com/en-us/cpp/c-runtime-library/lc-codepage-func?view=vs-2019

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-12 Thread hodai goldman


Change by hodai goldman :


--
keywords: +patch
pull_requests: +13891
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14027

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-09 Thread hodai goldman


hodai goldman  added the comment:

hi Michele,
Yes i wold propose a Pull Request.
SilentGhost: I don't know.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-07 Thread SilentGhost


SilentGhost  added the comment:

How come your locale doesn't have encoding associated with it? The bit you're 
looking at is not really relevant, though.

--
components: +Library (Lib)
nosy: +SilentGhost
title: _parse_localename fail to parse 'US_IL' -> _parse_localename fail to 
parse 'en_IL'
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com