mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-25 20:32:14 +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 <fcntl.h>
|
||||
#include <locale.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
@ -62,6 +63,9 @@ main ( int argc, char **argv )
|
|||
saved_euid = geteuid();
|
||||
seteuid( getuid() );
|
||||
|
||||
/* enforce C locale */
|
||||
setlocale(LC_ALL, "C");
|
||||
|
||||
printf( "\nYamagi Quake II v%4.2f\n", VERSION);
|
||||
printf( "=====================\n\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue