diff options
-rw-r--r-- | lib/igt_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index 2cf23934..051bc6a4 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -55,6 +55,7 @@ #include <time.h> #include <ctype.h> #include <limits.h> +#include <locale.h> #include "drmtest.h" #include "intel_chipset.h" @@ -522,6 +523,9 @@ static int common_init(int *argc, char **argv, int ret = 0; char *env = getenv("IGT_LOG_LEVEL"); + if (isatty(STDOUT_FILENO)) + setlocale(LC_ALL, ""); + if (env) { if (strcmp(env, "debug") == 0) igt_log_level = IGT_LOG_DEBUG; |