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

Re: [miles@lsi.nec.co.jp: Bug#242676: aptitude doesn't work well with LANG=ja_JP.utf-8]



Hi,

At Thu, 8 Apr 2004 09:27:31 -0400,
Daniel Burrows wrote:
> 
>   I don't really understand what to do about this bug.  Could
> anyone give me some suggestions?  (pleace Cc me, I'm not on this list)

You should use libncursesw5 instead of libncruses5.
libncurses5 doesn't support wide character set.

I try to build aptitude by using -I/usr/include/ncursesw and -lncursesw,
it seems to be ok for me.

> In particular -- do I need to convert the pofile to utf8, and how would
> I go about doing that?

no, you don't need to do it. gettext() checks charset parameter in 
Content-Type header and try to convert translated messages into 
locale's encoding.
aptitude*/po/ja.po has "Content-Type: text/plain; charset=euc-jp\" correctly,
it's ok. (but it seems to be very obsoleted translation...)

Regards,
Fumitoshi UKAI

> ----- Forwarded message from Miles Bader <miles@lsi.nec.co.jp> -----
> 
> From: Miles Bader <miles@lsi.nec.co.jp>
> Subject: Bug#242676: aptitude doesn't work well with LANG=ja_JP.utf-8
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> Date: Thu, 08 Apr 2004 11:37:57 +0900
> X-Mailer: reportbug 2.56
> 
> Package: aptitude
> Version: 0.2.14.1-2
> Severity: normal
> 
> 
> In my UTF-8 gnome-terminal, LANG=ja_JP.utf-8 is enough to make most apps
> display japanese messages correctly, but aptitude's output is largely
> gibberish.  It seems to be using a Japanese translation, but the
> character encoding is wrong (it appears to be EUC-JP).
> 
> I notice that the .mo file for aptitude is encoded using EUC-JP; should
> the message-catalog library stuff do the conversion to UTF-8, or would
> aptitude need to come with both?
> 
> Thanks,
> 
> -Miles
> 
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (101, 'experimental')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.4
> Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8
> 
> Versions of packages aptitude depends on:
> ii  apt [libapt-pkg-libc6.3-5-3 0.5.24       Advanced front-end for dpkg
> ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
> ii  libgcc1                     1:3.4-0pre4  GCC support library
> ii  libncurses5                 5.4-3        Shared libraries for terminal hand
> ii  libsigc++-1.2-5c102         1.2.5-1      Type-safe Signal Framework for C++
> ii  libstdc++5                  1:3.3.3-6    The GNU Standard C++ Library v3
> 
> -- no debconf information
> 
> 
> ----- End forwarded message -----
> 
> -- 
> /-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
> |             "We've got nothing to fear but the stuff that we're             |
> |              afraid of!" -- Fluble                                          |
> \----------------- The Turtle Moves! -- http://www.lspace.org ----------------/
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-i18n-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: