Skip to content

Commit

Permalink
thumbnailer: Always initialise locale on startup
Browse files Browse the repository at this point in the history
So that thumbnailers can print debug in UTF-8.
  • Loading branch information
hadess committed Apr 6, 2021
1 parent 0d3e221 commit 90ce167
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnome-thumbnailer-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

#include <locale.h>
#include <math.h>
#include <stdlib.h>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 90ce167

Please sign in to comment.