[vala/0.10] valac: Set locale from environment
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] valac: Set locale from environment
- Date: Tue, 19 Oct 2010 19:03:04 +0000 (UTC)
commit 3ad9d2f62e0ad9e42c14346321bc544d918e8c4f
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 9536ba7..0f36cdd 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]