mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 13:51:36 +00:00
[nq] Set the locale
This is done only in nq because I am not sure of the consequences to the rest of quake and I do most of my testing in nq when not using qwaq. Needed for thousands separators in formatted printing.
This commit is contained in:
parent
7642ef5758
commit
de21b273f2
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
||||||
#else
|
#else
|
||||||
# include <sys/fcntl.h>
|
# include <sys/fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
#include "QF/qargs.h"
|
#include "QF/qargs.h"
|
||||||
|
@ -83,6 +84,7 @@ main (int argc, const char **argv)
|
||||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
|
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
|
||||||
Sys_Printf ("Quake -- Version %s\n", NQ_VERSION);
|
Sys_Printf ("Quake -- Version %s\n", NQ_VERSION);
|
||||||
}
|
}
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
|
||||||
oldtime = Sys_DoubleTime () - 0.1;
|
oldtime = Sys_DoubleTime () - 0.1;
|
||||||
while (1) { // Main message loop
|
while (1) { // Main message loop
|
||||||
|
|
Loading…
Reference in a new issue