diff options
Diffstat (limited to 'src/driver')
| -rw-r--r-- | src/driver/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/main.cc b/src/driver/main.cc index 686a48f2..3d8431b6 100644 --- a/src/driver/main.cc +++ b/src/driver/main.cc @@ -123,6 +123,8 @@ main(int argc, char* argv[]) Command command; Driver driver = preprocess_arguments(&command, argc, argv); upgrade_environment(&command); + oa_setenv("LC_ALL", "C"); + setlocale(LC_ALL, ""); switch (driver) { case Driver::null: @@ -137,8 +139,6 @@ main(int argc, char* argv[]) case Driver::translator: case Driver::linker: case Driver::gui: - oa_setenv("LC_ALL", "C"); - setlocale(LC_ALL, ""); return execute_core(&command, driver); case Driver::execute: |
