mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson, pw-top: use ncursesw
Some PulseAudio clients are known to use localised client and stream names as values for the respective PulseAudio props, most notably plain old pavucontrol. We call setlocale before anything else for ncurses to display localised text correctly. We also want to link with ncursesw, which supports multibyte Unicode locales.
This commit is contained in:
parent
5f7910fcac
commit
403f27c531
2 changed files with 3 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ dl_lib = cc.find_library('dl', required : false)
|
||||||
pthread_lib = dependency('threads')
|
pthread_lib = dependency('threads')
|
||||||
dbus_dep = dependency('dbus-1')
|
dbus_dep = dependency('dbus-1')
|
||||||
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
|
||||||
ncurses_dep = dependency('ncurses', required : false)
|
ncurses_dep = dependency('ncursesw', required : false)
|
||||||
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
|
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
|
||||||
|
|
||||||
gst_option = get_option('gstreamer')
|
gst_option = get_option('gstreamer')
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
|
|
||||||
#include <spa/utils/result.h>
|
#include <spa/utils/result.h>
|
||||||
|
|
@ -495,6 +496,7 @@ int main(int argc, char *argv[])
|
||||||
struct timespec value, interval;
|
struct timespec value, interval;
|
||||||
struct node *n;
|
struct node *n;
|
||||||
|
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
pw_init(&argc, &argv);
|
pw_init(&argc, &argv);
|
||||||
|
|
||||||
spa_list_init(&data.node_list);
|
spa_list_init(&data.node_list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue