diff -ur open-cobol-1.1/configure open-cobol-1.1-ncursesw/configure --- open-cobol-1.1/configure 2009-01-28 12:22:44.000000000 -0600 +++ open-cobol-1.1-ncursesw/configure 2011-10-13 11:38:27.000000000 -0500 @@ -23537,13 +23537,13 @@ # Checks for ncurses/pdcurses/curses. USE_NCURSES="no" -echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 -echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5 +echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lncurses $LIBS" +LIBS="-lncursesw $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -23606,13 +23606,13 @@ #define HAVE_LIBNCURSES 1 _ACEOF - LIBS="-lncurses $LIBS" + LIBS="-lncursesw $LIBS" fi if test "x$ac_cv_lib_ncurses_initscr" = "xyes" then - LIBCOB_LIBS="$LIBCOB_LIBS -lncurses" + LIBCOB_LIBS="$LIBCOB_LIBS -lncursesw" for ac_header in ncurses.h do diff -ur open-cobol-1.1/libcob/screenio.c open-cobol-1.1-ncursesw/libcob/screenio.c --- open-cobol-1.1/libcob/screenio.c 2009-01-31 10:33:50.000000000 -0600 +++ open-cobol-1.1-ncursesw/libcob/screenio.c 2011-10-13 11:28:01.000000000 -0500 @@ -23,15 +23,17 @@ #include #include #include +#include #ifdef HAVE_UNISTD_H #include #endif +#define _XOPEN_SOURCE_EXTENDED #ifdef HAVE_NCURSES_H -#include +#include #define COB_GEN_SCREENIO #elif defined(HAVE_NCURSES_NCURSES_H) -#include +#include #define COB_GEN_SCREENIO #elif defined(HAVE_PDCURSES_H) #include @@ -271,6 +273,7 @@ } fflush (stdout); fflush (stderr); + setlocale(LC_ALL, ""); if (!initscr ()) { cob_runtime_error ("Failed to initialize curses"); cob_stop_run (1);