Re: [miles@lsi.nec.co.jp: Bug#242676: aptitude doesn't work well with LANG=ja_JP.utf-8]
At Fri, 09 Apr 2004 00:53:36 +0900,
Fumitoshi UKAI wrote:
>
> At Thu, 08 Apr 2004 23:46:02 +0900,
> Fumitoshi UKAI wrote:
>
> > 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.
>
> Here is an example fixes (and regenerate configure and add build-depends...)
Ah, with this fix, bottom window (description) will be broken...
Some widget is broken in UTF-8? We need more investigation.
> diff -Nru aptitude-0.2.14.1/configure.ac aptitude-0.2.14.1w/configure.ac
> --- aptitude-0.2.14.1/configure.ac 2004-04-04 13:29:38.000000000 +0900
> +++ aptitude-0.2.14.1w/configure.ac 2004-04-09 00:33:35.000000000 +0900
> @@ -16,8 +16,8 @@
> ac_cv_c_inline=yes
>
> dnl Checks for libraries.
> -AC_CHECK_LIB(curses, initscr, ,
> - [AC_MSG_ERROR([Can't find the curses libraries -- please install libncurses5-dev])])
> +AC_CHECK_LIB(ncursesw, initscr, ,
> + [AC_MSG_ERROR([Can't find the curses libraries -- please install libncursesw5-dev])])
> AC_CHECK_LIB(apt-pkg, main, , [AC_MSG_ERROR([Can't find the APT libraries -- please install libapt-pkg-dev])])
> AC_CHECK_LIB(pthread, main,
> HAVE_LIBPTHREAD=1
> diff -Nru aptitude-0.2.14.1/debian/rules aptitude-0.2.14.1w/debian/rules
> --- aptitude-0.2.14.1/debian/rules 2004-04-09 00:51:06.000000000 +0900
> +++ aptitude-0.2.14.1w/debian/rules 2004-04-09 00:47:47.000000000 +0900
> @@ -12,7 +12,7 @@
> build-stamp:
> dh_testdir
>
> - ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-werror
> + CFLAGS='-I/usr/include/ncursesw' CXXFLAGS='-I/usr/include/ncursesw' ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-werror
> $(MAKE)
>
> touch build-stamp
>
Regards,
Fumitoshi UKAI
Reply to: