[vala] valac: Set locale from environment



commit 31b0f84c4da7fd039c21a9548244ca48ac8702b7
Author: Jürg Billeter <j bitron ch>
Date:   Tue Oct 19 19:23:06 2010 +0200

    valac: Set locale from environment

 compiler/valacompiler.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 37da524..3310604 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -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);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]