summaryrefslogtreecommitdiff
path: root/graphics/librsvg2/files/patch-cmdline-bugfixes
blob: b70108aa3eb519e36a493436e3c2a145e5afa736 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- librsvg-2.22.2~/rsvg-convert.c	2007-07-01 23:43:44.000000000 +1000
+++ rsvg-convert.c	2008-10-20 16:52:27.000000000 +1100
@@ -31,6 +31,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <locale.h>
 
 #include "rsvg.h"
 #include "rsvg-cairo.h"
@@ -52,7 +53,7 @@
 display_error (GError * err)
 {
     if (err) {
-        g_print ("%s", err->message);
+        g_print ("%s\n", err->message);
         g_error_free (err);
     }
 }
@@ -165,6 +166,9 @@
         {NULL}
     };
 
+	/* Set the locale so that UTF-8 filenames work */
+	setlocale(LC_ALL, "");
+
 	g_thread_init(NULL);
 
     g_option_context = g_option_context_new (_("- SVG Converter"));