From e75387fd5f31c5755d6091d881b1214472ded317 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sat, 18 Feb 2017 19:04:00 +0100 Subject: [PATCH] Force the use of UTF-8 with gettext --- src/blupi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blupi.cpp b/src/blupi.cpp index 11befda..806ae0c 100644 --- a/src/blupi.cpp +++ b/src/blupi.cpp @@ -605,6 +605,7 @@ static void initGettext () setlocale (LC_ALL, ""); textdomain ("planetblupi"); bindtextdomain ("planetblupi", (GetBaseDir () + "locale").c_str ()); + bind_textdomain_codeset ("planetblupi", "UTF-8"); } // Programme principal.