aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 04:36:39 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 05:30:44 (GMT)
commit97eaca594a2adbfc3dfc5754ba162aee4144db47 (patch)
tree746b411859dee3a94700772ac9a6550a8d49eb8b /console
parent45a153b46c280b51471ec12854cce623ef8f92be (diff)
Add libcurses support for UTF-8
This patch were imported from Fedora 12 set of patches for xawtv. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'console')
-rw-r--r--console/radio.c3
-rw-r--r--console/record.c3
2 files changed, 6 insertions, 0 deletions
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