From 734b7a5c3b2859ab701227e7c8a96ca6aeb8f7fb Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 7 Apr 2013 18:58:32 +0000 Subject: tidy driver invokation --- src/driver/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/driver') 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: -- cgit v1.2.3