On Thursday 14 February 2008, Mike Frysinger wrote: > On Thursday 14 February 2008, Karel Zak wrote: > > On Thu, Feb 14, 2008 at 06:18:07PM -0500, Mike Frysinger wrote: > > > 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. > > > > > > AC_ARG_ENABLE([ncursesw],[...],enable_ncursesw=$enableval,enable_ncurse > > >sw =no) this would default to never using the wide ncurses unless the > > > package maintainer said --enable-ncursesw ... > > > > Yes, but vice versa ... the default in util-linux is to support wide > > chars, so we need --disable-ncursesw. Right? > > defaulting to on makes sense i guess. doesnt matter terribly much to me as > i'll be having the Gentoo ebuild force it regardless based on the user's > USE flags ;). > > > > > 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" ? :) > > > > No... here is NCURSESW (wide version) :-) > > oh right, i was thinking this locale code was to forcibly disable the > translations, not forcibly enable them when ncurses wide is available. so do you have something cooking for this or do you need a patch ? -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.