set locales in the test clients so that they can deal with non-ASCII characters, e.g. accented characters, properly.[skip ci]
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Shairport Sync.
|
* This file is part of Shairport Sync.
|
||||||
* Copyright (c) Mike Brady 2019--2025
|
* Copyright (c) Mike Brady 2019--2026
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person
|
* Permission is hereby granted, free of charge, to any person
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
|
|
||||||
@@ -99,7 +100,7 @@ void *dbus_thread_func(__attribute__((unused)) void *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
|
GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
|
||||||
// get the options --system or --session for system bus or session bus
|
// get the options --system or --session for system bus or session bus
|
||||||
signed char c; /* used for argument parsing */
|
signed char c; /* used for argument parsing */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Shairport Sync.
|
* This file is part of Shairport Sync.
|
||||||
* Copyright (c) Mike Brady 2019--2025
|
* Copyright (c) Mike Brady 2019--2026
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person
|
* Permission is hereby granted, free of charge, to any person
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
|
|
||||||
@@ -75,6 +76,7 @@ void *dbus_thread_func(__attribute__((unused)) void *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
|
GBusType gbus_type_selected = G_BUS_TYPE_SYSTEM; // set default
|
||||||
// get the options --system or --session for system bus or session bus
|
// get the options --system or --session for system bus or session bus
|
||||||
signed char c; /* used for argument parsing */
|
signed char c; /* used for argument parsing */
|
||||||
|
|||||||
Reference in New Issue
Block a user