Shammer's Philosophy

My private adversaria

Japanese Locale Configuration

I wrote an article about Debian locale configuration at Debian Locale Configuration - 20180613 - Shammerism, this is based on LANG=C.
Here is a procedure how to configure Japanese locale.

  1. Edit /etc/locale.gen and remove comment of the line which you want to use
  2. Exec locale-gen
  3. export LANG=$LOCALE_YOU_WANT_TO_USE
  4. export LC_ALL=$LANG
  5. locale-gen --purge $LANG
  6. dpkg-reconfigure -f noninteractive locales
  7. update-locale LANG=$LANG LC_ALL=$LANG
  8. perl -v

If no locale errors happened when perl -v, it is okay.
Here is a sample of /etc/default/locale to use ja_JP.UTF-8 as locale.

LANG=ja_JP.UTF-8
LC_ALL=ja_JP.UTF-8