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. > > any thoughts on how to autodetect this nicely in configure ? or perhaps leave Nicely? I have no clue... :-) Well, this is probably fundamentally wrong idea, because you can compile with --{prefix,bindir,sbindir,..}, "LDFLAGS=/strange/dir ./configure". The build system shouldn't expect fixed paths. > it up to the package maintainers ? Yes. That's their business. > 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 ... Yes, but vice versa ... the default in util-linux is to support wide chars, so we need --disable-ncursesw. Right? > > 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) :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html