[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:
Bill Currie 2023-07-12 23:56:47 +09:00
parent 7642ef5758
commit de21b273f2

View file

@ -44,6 +44,7 @@
#else
# include <sys/fcntl.h>
#endif
#include <locale.h>
#include "QF/cvar.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);
Sys_Printf ("Quake -- Version %s\n", NQ_VERSION);
}
setlocale (LC_ALL, "");
oldtime = Sys_DoubleTime () - 0.1;
while (1) { // Main message loop