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

[debian-devel:13067] Re: glibc-2.1.94-2 status (Re: [debian-users:24171] glibc-2.1.94 is now installed in woody. please attention!)



佐野@浜松です。

In <14803.15478.760194.90123Q@xxxxxxxxxxxxxxxxxxx>,
 on "Thu, 28 Sep 2000 21:41:28 +0900",
 with "[debian-devel:12941] Re: glibc-2.1.94-2 status (Re: [debian-users:24171] glibc-2.1.94 is now installed in woody. please attention!)",
  GOTO Masanori <gotom@debian.or.jp> さん wrote:

> >  * ln -s /usr/lib/locale/ja_JP.eucjp /usr/lib/loacle/ja_JP.eucJP 
> >    をしないと GNOME, X系の app で日本語が駄目です。
> >    この symlink をしておけば LANG=ja_JP.eucJP で ok です。
> >    (ちなみに symlink がないと LANG=ja_JP.eucjp でも ダメ)
> > 
> >    なお LANG=ja_JP.ujis はありません。
> >    symlink がなくても libc の locale は LANG=ja_JP.eucJP で ok です。
> 
> これは、
>   mv /usr/lib/locale/ja_JP.eucjp /usr/lib/locale/ja_JP.eucJP 
> にしたほうが良いでしょうね…。
> また後方互換性のために ja_JP.ujis も symlink して欲しいですね。
> 
> この2つは BTS しておきました。

さっき BTS チェックしたら 2.1.95.1 で close されちゃいましたね。

   | To: 72686@bugs.debian.org                                                       
   | Subject: Re: /usr/lib/locale/ja_JP.eucjp should be changed to ja_JP.eucJP       
   | From: Changwoo Ryu <cwryu@debian.org>                                           
   | Date: 05 Oct 2000 01:47:51 +0900                                                
   |                                                                                 
   | In glibc, the charset name in a locale name should be lowercase.                
   |                                                                                 
   | You can still set $LANG as ja_JA.eucJP, ja_JA.euc-jp, or ja_JA.EUC-JP.          
   | setlocale() automatically converts the charset name into lowercases             
   | and deletes non-alphabets-or-numbers.                                           
                                                                                
だそうですが、なんか勘違いされてる気が。

> >  * ln -s /usr/lib/locale/ja_JP.eucjp /usr/lib/loacle/ja_JP.eucJP 
> >    をしないと GNOME, X系の app で日本語が駄目です。

あいかわらず chroot した環境ですが、symlink を削除した状態 (つまり
標準の状態) でテストしてみました。

 unset LANG した状態から始めます。

  /usr/lib/locale# locale
  LANG=POSIX
  LC_CTYPE="POSIX"
  LC_NUMERIC="POSIX"
  LC_TIME="POSIX"
  LC_COLLATE="POSIX"
  LC_MONETARY="POSIX"
  LC_MESSAGES="POSIX"
  LC_PAPER="POSIX"
  LC_NAME="POSIX"
  LC_ADDRESS="POSIX"
  LC_TELEPHONE="POSIX"
  LC_MEASUREMENT="POSIX"
  LC_IDENTIFICATION="POSIX"
  LC_ALL=
  
  /usr/lib/locale# ls -ld ja*
  drwxr-xr-x    3 root     root         4096 Oct 16 09:39 ja_JP.eucjp

  /usr/lib/locale# LANG=ja_JP.eucjp xcalendar
  Warning: locale not supported by Xlib, locale set to C

  /usr/lib/locale# LANG=ja_JP.eucJP xcalendar
  Warning: locale not supported by Xlib, locale set to C

  /usr/lib/locale# LANG=ja_JP.ujis xcalendar
  Warning: locale not supported by C library, locale unchanged

  /usr/lib/locale# LANG=ja_JP.EUC-JP xcalendar
  Warning: locale not supported by Xlib, locale set to C

  /usr/lib/locale# ln -s ja_JP.eucjp ja_JP.eucJP 

  /usr/lib/locale# LANG=ja_JP.eucjp xcalendar
  Warning: locale not supported by Xlib, locale set to C

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

  /usr/lib/locale# LANG=ja_JP.ujis xcalendar
  Warning: locale not supported by C library, locale unchanged

  /usr/lib/locale# ln -s ja_JP.eucjp ja_JP.ujis

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

 symlink があれば、"Missing charsets in String to FontSet conversion" という
警告は表示されますが、ちゃんと日本語リソースの文字列は表示されます。

警告が "locale not supported by C library, locale unchanged" の場合には
日本語リソースは使われません。

BTS に reopen 72686 すべきですね。

 # 同様なレポートとして #74362 があることも指摘すべきか ?

あとで BTS report しておくつもりです。

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