diff options
author | dos-reis <gdr@axiomatics.org> | 2013-04-07 18:58:32 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-04-07 18:58:32 +0000 |
commit | 734b7a5c3b2859ab701227e7c8a96ca6aeb8f7fb (patch) | |
tree | fc8a8c8f17147a9b59d8b32b2b07caafaef9223f /src/driver/main.cc | |
parent | 2917bc0408655024981f07c66b7ffb3c44f41fce (diff) | |
download | open-axiom-734b7a5c3b2859ab701227e7c8a96ca6aeb8f7fb.tar.gz |
tidy driver invokation
Diffstat (limited to 'src/driver/main.cc')
-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: |