mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Do something sensible when compiled without iconv support
Without this fix, pacat won't start up, because it is unable to set the stream name.
This commit is contained in:
parent
518338ac0e
commit
3b7c6b21f4
1 changed files with 6 additions and 1 deletions
|
|
@ -249,11 +249,16 @@ char* pa_locale_to_utf8 (const char *str) {
|
|||
|
||||
char* pa_utf8_to_locale (const char *str) {
|
||||
pa_assert(str);
|
||||
return NULL;
|
||||
|
||||
return pa_ascii_filter(str);
|
||||
}
|
||||
|
||||
char* pa_locale_to_utf8 (const char *str) {
|
||||
pa_assert(str);
|
||||
|
||||
if (pa_utf8_valid(str))
|
||||
return pa_xstrdup(str);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue