[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2020-11-06 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2019-05-08 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Hey doko, I was just looking through the oldest gettext bugs and found this bug open. It was caused by your commits here: https://bugs.python.org/issue1166948 . It feels like we have a few choices: * revert the LANGUAGE ordering change which would take u

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, Mar 12, 2011 at 12:54:08PM +, Eugene Crosser wrote: > Steffen: can you please be more specific? I can't, dear Eugene, because you are completely right and i am completely wrong. > I believe that the correct "guessing order" [...] Well, th

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Eugene Crosser
Eugene Crosser added the comment: Steffen: can you please be more specific? As I read the seciton 8.2 of the cited document, I do not see a disparity with my statement. There is even an example: """ For example, if a user wanted to interact with the system in French, but required to sort Germ

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Eugene, whereas i still disagree (i'm a C programmer in daily life), Python 3.3a0 (default, Mar 10 2011, 11:50:55) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import locale >

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Eugene: i disagree. The semantics are correct according to C standards: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html -- nosy: +sdaoden ___ Python tracker

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2011-03-12 Thread Eugene Crosser
Eugene Crosser added the comment: I don't know if the solution suggested in the report is right, but I can confirm the the current logic of getdefaultlocale() produces wrong results. I have LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=ru_RU.UTF-8 which means, acco

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2010-07-11 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +lemburg, loewis versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue6981] locale.getdefaultlocale() envvars default code and documentation mismatch

2009-09-23 Thread Ville Skyttä
New submission from Ville Skyttä : The default list of locale.getdefaultlocale() is documented to be the one of GNU gettext; in the source docs in Python 2.7 trunk: "envvars defaults to the search path used in GNU gettext; it must always contain the variable name 'LANG'." ...and at htt