]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc: Call setlocale in main function
authorTing-Wei Lan <lantw@src.gnome.org>
Mon, 11 Jan 2016 06:43:27 +0000 (14:43 +0800)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Oct 2016 13:40:41 +0000 (15:40 +0200)
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760435

src/valadoc/valadoc.vala

index 9ebe79ebafc0eef8567c337b4965d90932b529dc..2e7801be46a4842380eeae1846e923d1b6f548ef 100644 (file)
@@ -305,6 +305,7 @@ public class ValaDoc : Object {
        }
 
        static int main (string[] args) {
+               Intl.setlocale (LocaleCategory.ALL, "");
                ErrorReporter reporter = new ErrorReporter();
 
                try {