summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-02 21:28:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-02 21:28:43 -0400
commitb3d90fe51bb83b61b39e75ed513683ca00483d8b (patch)
treec7845256a4599d8010c02228158726184502f1a2
parent6a214c9bcd78be3814a125d52e4d1eb3ac7d2256 (diff)
downloadgtk+-b3d90fe51bb83b61b39e75ed513683ca00483d8b.tar.gz
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.
-rw-r--r--util/extract-strings.c3
1 files changed, 3 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#include <locale.h>
#include <glib.h>
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");