Message381206
locale.getlocale(category=LC_CTYPE)
Returns the current setting for the given locale category as sequence containing language code, encoding. category may be one of the LC_* values except LC_ALL. It defaults to LC_CTYPE.
Except for the code 'C', the language code corresponds to RFC 1766. language code and encoding may be None if their values cannot be determined.
---
The non-standard 'C' language code is documented. I am not sure that 'current program setting' is an improvement, especially if details have changed. So closing as 'good enough' |
|
| Date |
User |
Action |
Args |
| 2020-11-17 06:08:03 | terry.reedy | set | recipients:
+ terry.reedy, eric.araujo, docs@python, alexis, feth, eryksun, iritkatriel |
| 2020-11-17 06:08:03 | terry.reedy | set | messageid: <1605593283.89.0.811112390148.issue12726@roundup.psfhosted.org> |
| 2020-11-17 06:08:03 | terry.reedy | link | issue12726 messages |
| 2020-11-17 06:08:03 | terry.reedy | create | |
|