Set locale in key_reader correctly

darcs-hash:20050925113213-ac50b-1d38653ba028bf64b7baab751facc837137e9bff.gz
This commit is contained in:
axel 2005-09-25 21:32:13 +10:00
parent 4a786cafda
commit cb1f3eb53d

View file

@ -10,6 +10,7 @@
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <locale.h>
#include <termcap.h>
#include "input_common.h"
@ -23,6 +24,9 @@ int writestr( char *str )
int main( int argc, char **argv)
{
setlocale( LC_ALL, "" );
if( argc == 2 )
{
static char term_buffer[2048];