mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Enforce "C" locale
This commit is contained in:
parent
b6bb97e223
commit
8930dc512f
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue