Enforce "C" locale

This commit is contained in:
Yamagi Burmeister 2012-04-19 13:11:00 +00:00
parent b6bb97e223
commit 8930dc512f

View file

@ -26,6 +26,7 @@
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <locale.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
@ -62,6 +63,9 @@ main ( int argc, char **argv )
saved_euid = geteuid(); saved_euid = geteuid();
seteuid( getuid() ); seteuid( getuid() );
/* enforce C locale */
setlocale(LC_ALL, "C");
printf( "\nYamagi Quake II v%4.2f\n", VERSION); printf( "\nYamagi Quake II v%4.2f\n", VERSION);
printf( "=====================\n\n"); printf( "=====================\n\n");