From: Jürg Billeter Date: Tue, 19 Oct 2010 17:23:06 +0000 (+0200) Subject: valac: Set locale from environment X-Git-Tag: 0.10.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ad9d2f62e0ad9e42c14346321bc544d918e8c4f;p=thirdparty%2Fvala.git valac: Set locale from environment --- diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 9536ba7ba..0f36cdd0f 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -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); }