From e7cf0fa9e9e8c8a78ebb9581a56091810de0246e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 14 Nov 2015 10:25:54 +0300 Subject: [PATCH] Set UTF-8 codepage (need for plugins on win32). --- templates/library_constructor.c.in | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/library_constructor.c.in b/templates/library_constructor.c.in index be99a02..6c9e7c5 100644 --- a/templates/library_constructor.c.in +++ b/templates/library_constructor.c.in @@ -41,6 +41,7 @@ void __attribute__ ((constructor)) load_library (void) localePath = g_build_filename (soDir, "@LC_RELATIVE_PREFIX@/share/locale", NULL); g_free (soDir); bindtextdomain (GETTEXT_PACKAGE, localePath); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); g_free (localePath); @LC_COMMON_CODE@