Bug 242257 - i18n: locale km_KH (Khmer / Cambodia) is not supported
Summary: i18n: locale km_KH (Khmer / Cambodia) is not supported
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-standards mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-26 21:42 UTC by Thierry Thomas
Modified: 2019-11-26 21:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer 2019-11-26 21:42:50 UTC
With Python 3.6, I noticed that
locale.setlocale(locale.LC_CTYPE, 'km_KH.UTF-8')
produces an error.

Just type:

$ python3.6
>>> import locale
>>> locale.setlocale(locale.LC_CTYPE, 'km_KH.UTF-8')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/locale.py", line 598, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

And if you type:
LC_ALL=km_KH.UTF-8 locale

you can notice that everything is set to "C":

$ LC_ALL=km_KH.UTF-8 locale
LANG=fr_FR.UTF-8
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=km_KH.UTF-8