diff --git a/src/glsl/test.cpp b/src/glsl/test.cpp index b1ff92e..9dc7c47 100644 --- a/src/glsl/test.cpp +++ b/src/glsl/test.cpp @@ -37,6 +37,7 @@ #include #include #include +#include "util/strtod.h" #include "test_optpass.h" @@ -67,6 +68,9 @@ static const char *extract_command_from_argv(int *argc, char **argv) int main(int argc, char **argv) { const char *command = extract_command_from_argv(&argc, argv); + + _mesa_locale_init(); + if (strcmp(command, "optpass") == 0) { return test_optpass(argc, argv); } else {