diff --git a/src/wrap.c b/src/wrap.c
index 2a3c16036d61bf69bbb5dfa85152e0566e692258..080dc2bc511c9f7e5551df72919192982f57abec 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -31,6 +31,7 @@
 
 #include <X11/Xauth.h>
 
+#include <locale.h>
 #include <stdlib.h>
 #include <sys/utsname.h>
 
@@ -1543,6 +1544,7 @@ main (int argc,
   const gchar *bwrap_help_argv[] = { "<bwrap>", "--help", NULL };
   GSpawnFlags spawn_flags = G_SPAWN_DO_NOT_REAP_CHILD;
 
+  setlocale (LC_ALL, "");
   pv_avoid_gvfs ();
 
   g_set_prgname ("pressure-vessel-wrap");