From b3d90fe51bb83b61b39e75ed513683ca00483d8b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 2 Oct 2014 21:28:43 -0400 Subject: [PATCH] Make non-ASCII strings in ui files work Our extractor tool was not calling setlocale(), thus it only produced output in the C locale, ie ASCII. Oops. --- util/extract-strings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/extract-strings.c b/util/extract-strings.c index 183b99a4c4..5dd379e6d4 100644 --- a/util/extract-strings.c +++ b/util/extract-strings.c @@ -15,6 +15,7 @@ * License along with this library. If not, see . */ +#include #include typedef struct { @@ -143,6 +144,8 @@ main (int argc, char *argv[]) GMarkupParseContext *context; ParserData data; + setlocale (LC_ALL, ""); + if (argc < 2) { g_printerr ("Expect a filename\n");