Subject: Setting locale files for Japanese
To: None <netbsd-users@NetBSD.ORG>
From: Mark Andres <mark@ratbert.aisol.net>
List: netbsd-users
Date: 06/30/1997 15:39:09
Hi,

First the requisite info. I am running NetBSD current (June 1 snapshot) on
a Macintosh Centris 650, 40MB RAM, 1.2 GB HD.

I am sure that there have to be some people out there who are using
Japanese under NetBSD.  I have Japanese mostly working with KTerm, Wnn4,
Kinput2, and jvim.  I just have one problem which up to now has only been
an annoyance.  When ever I start a Kterm, I get "Couldn't set locale:
ja_JP.eucJP,ja_JP.ujis,ja_JP.EUC,japanese.euc,Japanese-EUC,ja,japan".  I
know that if you do the full installs of Linux or FreeBSD, most of the
Japanese stuff gets set up as part of the install.  However, this doesn't
seem to be the case in NetBSD.

I have the following in /usr/X11R6/lib/X11/locale
ratbert% ll
total 32
drwxr-xr-x  21 root  wheel   512 Mar 14 18:39 .
drwxr-xr-x  17 root  wheel   512 May 15 16:43 ..
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 C
-r--r--r--   1 root  wheel  1381 Oct  6  1996 compose.dir
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 en_US.utf
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-1
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-2
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-3
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-4
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-5
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-6
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-7
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-8
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 iso8859-9
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 ja
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 ja.JIS
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 ja.SJIS
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 ko
-r--r--r--   1 root  wheel  6909 Oct  6  1996 locale.alias
-r--r--r--   1 root  wheel  2019 Oct  6  1996 locale.dir
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 tbl_data
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 th_TH.TACTIS
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 zh
drwxr-xr-x   2 root  wheel   512 Mar 14 18:39 zh_TW

It seems to me that "ja" in the above lists should match up.  In any case,
KTerm works fine despite the error message, so I wasn't too worried about
it.  Recently, I have been trying to get Japanese patched Chimera running,
so I can browse Japanese web pages.  If I can get this running, then I
don't need to use MacOS at all :->

However, when I try to run Chimera, forcing it to use "ja" with

  chimera -xnllanguage ja &

I get "Can't setlocale to ja". Chimera runs, but it doesn't display
Japanese like it should.  I think I must be missing something
somewhere, but I could not find any information about setting the locale
in the documentation for any programs.  If anyone can point me in the
right direction, I would really appreciate it.

Mark Andres   E-mail: mark@ratbert.aisol.net
    Running NetBSD, 100% Microsoft Free!
 http://www2.giganet.net/private/users/mark/