]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valac: Set locale from environment
authorJürg Billeter <j@bitron.ch>
Tue, 19 Oct 2010 17:23:06 +0000 (19:23 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 19 Oct 2010 17:23:06 +0000 (19:23 +0200)
compiler/valacompiler.vala

index 37da5242d7cee1b85afe1d0ea54986c09374a184..33106041516ff5e68350aa3eb117787761f58656 100644 (file)
@@ -556,6 +556,9 @@ class Vala.Compiler {
        }
 
        static int main (string[] args) {
+               // initialize locale
+               Intl.setlocale (LocaleCategory.ALL, "");
+
                if (Path.get_basename (args[0]) == "vala" || Path.get_basename (args[0]) == "vala" + Config.PACKAGE_SUFFIX) {
                        return run_source (args);
                }