aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--console/radio.c3
-rw-r--r--console/record.c3
3 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2f8d9cc..db68671 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,10 @@ if test "$LIBPTHREAD" = ""; then
AC_CHECK_LIB(c_r,pthread_create,LIBPTHREAD="-lc_r")
fi
AC_CHECK_LIB(ossaudio,main,LIBOSS="-lossaudio")
-AC_CHECK_LIB(ncurses,initscr,LIBCURSES="-lncurses")
+AC_CHECK_LIB(ncursesw,initscr,LIBCURSES="-lncursesw")
+if test "$LIBCURSES" = ""; then
+ AC_CHECK_LIB(ncurses,initscr,LIBCURSES="-lncurses")
+fi
if test "$LIBCURSES" = ""; then
AC_CHECK_LIB(curses,initscr,LIBCURSES="-lcurses")
fi
@@ -120,6 +123,9 @@ if test "$LIBCURSES" = ""; then
echo " you need also the *-devel packages."
exit 1
fi
+if test "$LIBCURSES" = "-lncursesw"; then
+ CFLAGS="$CFLAGS -I/usr/include/ncursesw"
+fi
AC_SUBST(LIBPTHREAD)
AC_SUBST(LIBOSS)
AC_SUBST(LIBCURSES)
diff --git a/console/radio.c b/console/radio.c
index c373259..e2964be 100644
--- a/console/radio.c
+++ b/console/radio.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
+#include <locale.h>
#include <curses.h>
#include <sys/time.h>
#include <sys/ioctl.h>
@@ -398,6 +399,8 @@ main(int argc, char *argv[])
int quit=0, scan=0, arg_mute=0;
struct video_tuner tuner;
+ setlocale(LC_ALL,"");
+
/* parse args */
for (;;) {
c = getopt(argc, argv, "mhiqdsSf:c:");
diff --git a/console/record.c b/console/record.c
index c42c49b..d76e793 100644
--- a/console/record.c
+++ b/console/record.c
@@ -6,6 +6,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
+#include <locale.h>
#include <curses.h>
#include <signal.h>
#include <inttypes.h>
@@ -574,6 +575,8 @@ main(int argc, char *argv[])
record = 0;
nr = 0;
+ setlocale(LC_ALL,"");
+
/* parse options */
for (;;) {
if (-1 == (c = getopt(argc, argv, "vhlci:o:d:m:r:t:s:L:p:n:")))

Privacy Policy