mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05: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
				
			
		| 
						 | 
				
			
			@ -25,6 +25,7 @@
 | 
			
		|||
#include <stdio.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
#include <getopt.h>
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
#include <ncurses.h>
 | 
			
		||||
 | 
			
		||||
#include <spa/utils/result.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -495,6 +496,7 @@ int main(int argc, char *argv[])
 | 
			
		|||
	struct timespec value, interval;
 | 
			
		||||
	struct node *n;
 | 
			
		||||
 | 
			
		||||
	setlocale(LC_ALL, "");
 | 
			
		||||
	pw_init(&argc, &argv);
 | 
			
		||||
 | 
			
		||||
	spa_list_init(&data.node_list);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue