[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

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

2011-03-12 Thread Eugene Crosser
Eugene Crosser cros...@average.org 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

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

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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

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

2011-03-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6981 ___ ___ Python-bugs-list

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

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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.

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

2011-03-12 Thread Eugene Crosser
Eugene Crosser cros...@average.org 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

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

2011-03-12 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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

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

2010-07-11 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +lemburg, loewis versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6981 ___

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

2009-09-23 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: 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