This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 lemburg
收信人 cstratak, lemburg, serhiy.storchaka, skrah, vstinner
日期 2018-01-15.12:37:28
SpamBayes Score -1.0
Marked as misclassified
Message-id <1516019848.92.0.467229070634.issue31900@psf.upfronthosting.co.za>
In-reply-to
内容
I just wanted to note that the description and title may cause a wrong interpretation of what should happen:

If you first set LC_ALL and then one of the other categories such as LC_NUMERIC, locale C functions will still use the LC_ALL setting for everything. LC_NUMERIC does not override the LC_ALL setting.

I tested this on OpenSUSE and get the same wrong results. Apparently, locale.localeconv() does not respect the above order. That's a bug.

I'm not sure whether the OP's quoted behavior is a bug, though, since if the locale encoding is not UTF-8, you cannot really expect using UTF-8 numeric separators to output correctly.
历史
日期 用户 动作 参数
2018-01-15 12:37:28lemburg修改recipients: + lemburg, vstinner, skrah, serhiy.storchaka, cstratak
2018-01-15 12:37:28lemburg修改messageid: <1516019848.92.0.467229070634.issue31900@psf.upfronthosting.co.za>
2018-01-15 12:37:28lemburg链接issue31900 messages
2018-01-15 12:37:28lemburg创建