On 05/29/2017 08:04 AM, Patrick Shanahan wrote:
* Patrick McNeil
[05-29-17 07:16]: On 05/29/2017 06:17 AM, Chan Ju Ping wrote:
On Monday, 29 May 2017 5:34:21 PM +08 Chan Ju Ping wrote:
I have changed my locale and this is my output now:
-- locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_MY.UTF-8 LC_COLLATE="en_GB.UTF-8" LC_MONETARY=en_MY.UTF-8 LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL= --
I still can't see the CJK characters in my terminal, and /etc/sysconfig Editor describes for LC_ALL,
"This variable will override all LC-variables!! Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser account is desired."
So that would make my LC_TIME setting meaningless, presumably. Or am I mistaken? I tried uncompressing a file with Japanese characters, and it failed. So it appears if it doesn't work in the terminal, it won't work for unrar or unzip.
Any wild solutions to try? It does not seem as though en_MY is available for Linux. If you look in /usr/lib/locale/ for en_*, there are 37 entries, but no en_MY. Also, there is no output from: 'locale --all-locales | egrep -i en_MY' locate --all-locales |egrep -i en_MY locate: unrecognized option '--all-locales'
locate en_MY /usr/lib/python2.7/site-packages/babel/locale-data/en_MY.dat
rpm -qf /usr/lib/python2.7/site-packages/babel/locale-data/en_MY.dat python2-Babel-2.4.0-2.1.noarch
It is recognized as a language combination in CLDR (http://www.unicode.org/cldr/charts/latest/supplemental/territory_language_in...), but does not seem to be defined on Linux (Opensuse or Red Hat, so probably glibc). it is on Tw
I think there was a small typo in your command line: 'locate --all-loc...' should be 'locale...'. The idea is to see what locales the locale DB thinks are available rather than looking for actual files. On TW (and on Opensuse), some locale files are provided by particular programs. On TW "20170522", with Python and Perl Date::Time::Locale installed, I have en_MY locale provided by: python2-Babel-2.4.0-2.1.noarch perl-DateTime-Locale-1.050000-1.1.noarch I believe this means that you could use this locale from a Python 2 script/program or from a Perl script/program (via Date::Time::Locale), but I don't think the OS will see it. If it did, the 'locale --all-locales' command should see it. And if the OS does not see the locale, very few programs (like terminals) would be able to use it. -- Patrick McNeil Université de Montréal - TI Pav. Roger-Gaudry, X-205 Téléphone: (514) 343-6111, poste 5247 Courriel: patrick.mcneil@umontreal.ca Télécopie/FAX: (514) 343-2155 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org