]> 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 18:59:14 +0000 (20:59 +0200)
compiler/valacompiler.vala

index 9536ba7bafc3bcf7ac1d5d41ca0056ff53c65530..0f36cdd0f53ed96c77126be531ea9697df970466 100644 (file)
@@ -694,6 +694,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);
                }