On Thu, Feb 14, 2008 at 04:46:22PM -0500, Mike Frysinger wrote: > On Thursday 14 February 2008, Karel Zak wrote: > > On Sat, Feb 09, 2008 at 05:38:23PM -0500, Mike Frysinger wrote: > > > right now we force -lncurses in the build system. should we be checking > > > for the wide versions of curses and using that when available ? > > > > Yes, it makes sense for things from misc-utils/. > > > > But... I don't think it makes sense to link /sbin/cfdisk with > > /usr/lib/libncursesw. The stuff in /{bin,sbin} should be independent > > on /usr. > > Gentoo and Debian place the wide version in /lib ...
I have talked about this issue with Fedora ncurses maintainer, but our decision was keep it in /usr... maybe we can move the library too. > > 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. What about to disable locale for systems without the wide version? #ifdef HAVE_NCURSESW setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif Karel -- Karel Zak <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html