mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
all: Call setlocale() at the start of main()
This fixes some broken characters in the fprintd debug output.
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
#include <dbus/dbus-glib-bindings.h>
|
||||
#include "manager-dbus-glue.h"
|
||||
#include "device-dbus-glue.h"
|
||||
@ -125,6 +126,8 @@ static void process_devices(char **argv)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
setlocale (LC_ALL, "");
|
||||
|
||||
create_manager();
|
||||
|
||||
if (argc < 2) {
|
||||
|
||||
Reference in New Issue
Block a user