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:
Maarten Bosmans 2011-10-10 09:27:16 +02:00 committed by Arun Raghavan
parent 518338ac0e
commit 3b7c6b21f4

View file

@ -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;
}