]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Call setlocale in main function
authorTing-Wei Lan <lantw@src.gnome.org>
Mon, 11 Jan 2016 06:46:52 +0000 (14:46 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Sat, 18 Jun 2016 11:36:46 +0000 (19:36 +0800)
It is required to correctly show translated messages on some locales.

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

vapigen/valavapigen.vala

index 2148e604c1069347df9c620eaf065b092580aea4..81b627e92414cc9f2b60c8da5bb73919b3a06698 100644 (file)
@@ -197,6 +197,7 @@ class Vala.VAPIGen : Object {
        }
        
        static int main (string[] args) {
+               Intl.setlocale (LocaleCategory.ALL, "");
                try {
                        var opt_context = new OptionContext ("- Vala API Generator");
                        opt_context.set_help_enabled (true);