From 63d53db58c61f3be0cd0505a2b2e2a6f6776bb7c Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sat, 30 Jun 2007 00:29:32 +0000 Subject: [PATCH] Use setlocale() in tuidemo -- makes it easier to browse files with non-ASCII characters. --- demos/tuidemo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/demos/tuidemo.c b/demos/tuidemo.c index 08b47238..857fcd35 100644 --- a/demos/tuidemo.c +++ b/demos/tuidemo.c @@ -1,6 +1,6 @@ /********************************* tuidemo.c ********************************/ /* - * $Id: tuidemo.c,v 1.19 2007/06/22 10:09:42 wmcbrine Exp $ + * $Id: tuidemo.c,v 1.20 2007/06/30 00:29:32 wmcbrine Exp $ * * Author : P.J. Kunst (kunst@prl.philips.nl) * Date : 25-02-93 @@ -17,6 +17,7 @@ #include #include #include +#include #include "tui.h" /* change this if source at other location */ @@ -226,6 +227,8 @@ void subsub(void) int main(int argc, char **argv) { + setlocale(LC_ALL, ""); + startmenu(MainMenu, "TUI - 'textual user interface' demonstration program");