all: Call setlocale() at the start of main()

This fixes some broken characters in the fprintd debug output.
This commit is contained in:
Bastien Nocera
2019-12-04 11:58:28 +01:00
parent deb3c25e51
commit b690daa95f
5 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <dbus/dbus-glib-bindings.h>
#include "manager-dbus-glue.h"
#include "device-dbus-glue.h"
@ -172,6 +173,8 @@ int main(int argc, char **argv)
DBusGProxy *dev;
char *username;
setlocale (LC_ALL, "");
dbus_g_object_register_marshaller (fprintd_marshal_VOID__STRING_BOOLEAN,
G_TYPE_NONE, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_INVALID);