On Thursday 14 February 2008, Karel Zak wrote: > On Thu, Feb 14, 2008 at 04:46:22PM -0500, Mike Frysinger wrote: > > On Thursday 14 February 2008, Karel Zak wrote: > > > Note that move libncursesw to /lib doesn't make sense because all > > > locale data are usually in /usr/share. Maybe we can move cfdisk to > > > /usr/sbin (because it's user-friend and more high-level util, ...). > > > > well the interface is currently broken when using a UTF8 locale that has > > a translation. for example, we now have russian translations, but > > they're broken when the locale defaults to russian unicode (ru_RU.UTF8). > > Yes, I understand. Well, let use the wide version -- the ideal > solution will be check for the library in /lib only. any thoughts on how to autodetect this nicely in configure ? or perhaps leave it up to the package maintainers ? AC_ARG_ENABLE([ncursesw],[...],enable_ncursesw=$enableval,enable_ncursesw=no) this would default to never using the wide ncurses unless the package maintainer said --enable-ncursesw ... > What about to disable locale for systems without the wide version? > > #ifdef HAVE_NCURSESW > setlocale(LC_ALL, ""); > bindtextdomain(PACKAGE, LOCALEDIR); > textdomain(PACKAGE); > #endif you mean "#ifndef" ? :) -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.