[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:13102] ja_JP.eucjp (Re: Re: glibc-2.1.94-2 status)



佐野@浜松です。

In <20001017094322I.kgh12351@xxxxxxxxxxxxxxxxxxxx>,
 on "Tue, 17 Oct 2000 10:15:18 +0900", I wrote:

> BTS に reopen 72686 すべきですね。
> 
>  # 同様なレポートとして #74362 があることも指摘すべきか ?
> 
> あとで BTS report しておくつもりです。

BTS チェックしてくれた人は御存知でしょうが、Ben.C がようやく
最後に現われたと思ったら

  | Sender: Ben Collins <bmc@xxxxxxxx>
  | Delivered-To: 72686@bugs.debian.org
  | 
  | >
  | > Well, we must..  But please consider; making symlinks in the libc6
  | > package is not enough.  If the glibc maintainer continues to use the
  | > lowercases, our locale-name-dependent i18n patches won't work in other
  | > GNU/Linux distributions.  IMHO obeying the glibc rule is easier and
  | > better than changing the rule.
  | >
  | 
  | Amen.

だそうです。

で、そのひとつ前に

  | From: Changwoo Ryu <cwryu@debian.org>
  | 
  | ja_JP.ujis is already in /etc/locale.alias.  Isn't it enough?  After
  | setlocale(LC_ALL, NULL) will always return "ja_JA.eucjp".  And we
  | could use "ja_JA.eucjp" for any locale name dependent i18n fixes.

とあったので、ちょっと調べてみましたが、自分の woody システムには
 /etc/locales.alias に ja_JP.ujis がありません。

ii  locales  2.1.95-1      GNU C Library: National Language (locale) data

なんですが。

で、たしかに /etc/locale.alias に

--- /etc/locale.alias.dpkg-dist Sat Sep 30 14:49:51 2000
+++ /etc/locale.alias   Wed Oct 18 14:42:02 2000
@@ -52,7 +52,9 @@
 japanese       ja_JP.eucJP
 japanese.euc   ja_JP.eucJP
 ja_JP          ja_JP.eucJP
+ja_JP.ujis     ja_JP.eucJP
 japanese.sjis  ja_JP.SJIS
+ja_JP.sjis     ja_JP.SJIS
 korean         ko_KR.eucKR
 korean.euc     ko_KR.eucKR
 ko_KR          ko_KR.eucKR

という変更を加えると、

  # ls -Fl /usr/lib/locale/|grep ja
  drwxr-xr-x    3 root     root         4096 10月 16 09:39 ja_JP.eucjp/

な状態かつ

  # LANG=C ls -lF /usr/lib/X11/|grep ja
  drwxr-xr-x    3 root     root         4096 Sep 27 16:34 ja_JP.eucjp/

な状態であっても、

  # LANG=ja_JP.ujis xcalendar
   Warning: Missing charsets in String to FontSet conversion

  # LANG=ja_JP.eucJP xcalendar
   Warning: Missing charsets in String to FontSet conversion

  # LANG=ja_JP.eucjp xcalendar
   Warning: Missing charsets in String to FontSet conversion

となり、いずれも日本語リソースをきちんと使えます。

ということは、 /usr/lib/locale/ 以下にも /usr/X11R6/lib/X11 以下にも
 sym link は必要無くて、単に /etc/locale.alias に ja_JP.ujis が
追加されていればそれで良い、ということになりそうです。

ただ、 /usr/X11R6/lib/X11/ja_JP.ujis/ 以下や、あるいは
 /usr/X11R6/lib/X11/ja_JP.eucJP/ 以下にリソースファイルを
置いているパッケージが存在しているでしょうから、それらの
パッケージに対する救済措置として /usr/X11R6/lib/X11 の下で

 ln -s ja_JP.eucjp ja_JP.eucJP
 ln -s ja_JP.ujis ja_JP.eucJP

をしておいたほうが良いのかもしれません。

というか、このまえ ja_JP.ujis -> ja_JP.eucJP をしたのは
結果としては無駄でしたね。最初からこれがわかっていれば
 ja_JP.ujis -> ja_JP.eucjp だけで良かったのに。

 potato -> woody の移行では、おそらくこの対処が必要でしょう。

とりあえず /etc/locale.alias に ja_JP.ujis を追加してくれ、と
いうことだけを Ben.C に頼んでみるつもりです。

あとは各 X/Gnome 関連パッケージについて個別に対応する必要が
あるということですね。

--
     # (わたしのおうちは浜松市、「夜のお菓子」で有名さ。)
    <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (佐野 武俊)