libdialog & wide charcter support (Was: Request for testing/comments -- import of new dialog/libdialog)

Anonymous swell.k at gmail.com
Sat Feb 5 09:04:59 UTC 2011


Nathan Whitehorn <nwhitehorn at freebsd.org> writes:

> As part of work on a new installer, I would like to update the base
> system dialog and libdialog to the newer one provided by Thomas Dickey
> (http://invisible-island.net/dialog/, ports as devel/cdialog). This is
> a much nicer, fuller featured version of dialog that simplifies the
> creation of new dialog-using tools (a longstanding impediment to a new
> versions of sade, sysinstall, etc.), and is under a marginally better
> license (LGPL2 instead of GPL2).
>
> Patches to effect the import can be found at:
> - http://people.freebsd.org/~nwhitehorn/libdialog-update.diff

Unlike devel/cdialog your diff (and r217309) has wide character support
disabled. Was this intentional? For example, without it for each UTF-8
character there'd be extra space padding in editobox, inputbox, fselect,
dselect, etc.

%%
Index: gnu/lib/libdialog/dlg_config.h
===================================================================
--- gnu/lib/libdialog/dlg_config.h	(revision 218313)
+++ gnu/lib/libdialog/dlg_config.h	(working copy)
@@ -89,3 +89,5 @@
 #define SYSTEM_NAME "freebsd9.0"
 #define TIME_WITH_SYS_TIME 1
 #define TYPE_CHTYPE_IS_SCALAR 1
+#define USE_WIDE_CURSES 1
+#define _XOPEN_SOURCE_EXTENDED 1
%%


More information about the freebsd-current mailing list