[gdk-pixbuf/wip/hadess/thumbnailer-locale] thumbnailer: Always initialise locale on startup
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/wip/hadess/thumbnailer-locale] thumbnailer: Always initialise locale on startup
- Date: Tue, 6 Apr 2021 10:41:50 +0000 (UTC)
commit 397c08c5d46dbda52be7a46b918f5f3b0714042a
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 6 12:40:55 2021 +0200
thumbnailer: Always initialise locale on startup
So that thumbnailers can print debug in UTF-8.
Updated from gnome-thumbnailer-skeleton module.
thumbnailer/gnome-thumbnailer-skeleton.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/thumbnailer/gnome-thumbnailer-skeleton.c b/thumbnailer/gnome-thumbnailer-skeleton.c
index 75c0f9c10..b45192645 100644
--- a/thumbnailer/gnome-thumbnailer-skeleton.c
+++ b/thumbnailer/gnome-thumbnailer-skeleton.c
@@ -24,6 +24,7 @@
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <locale.h>
#include <math.h>
#include <stdlib.h>
@@ -238,6 +239,8 @@ int main (int argc, char **argv)
gsize length;
#endif
+ setlocale (LC_ALL, "");
+
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init ();
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]