0dedecc112
Too many changes to list here: http://pulseaudio.org/milestone/0.9.15 http://pulseaudio.org/milestone/0.9.16 http://pulseaudio.org/milestone/0.9.17 http://pulseaudio.org/milestone/0.9.18 http://pulseaudio.org/milestone/0.9.19 http://pulseaudio.org/milestone/0.9.20 http://pulseaudio.org/milestone/0.9.21
26 lines
650 B
Text
26 lines
650 B
Text
$NetBSD: patch-ca,v 1.2 2010/02/01 15:00:20 jmcneill Exp $
|
|
|
|
--- src/pulse/utf8.c.orig 2009-09-10 00:04:58.000000000 +0000
|
|
+++ src/pulse/utf8.c
|
|
@@ -55,6 +55,7 @@
|
|
|
|
#ifdef HAVE_ICONV
|
|
#include <iconv.h>
|
|
+#include <langinfo.h>
|
|
#endif
|
|
|
|
#include <pulse/xmalloc.h>
|
|
@@ -238,11 +239,11 @@ static char* iconv_simple(const char *st
|
|
}
|
|
|
|
char* pa_utf8_to_locale (const char *str) {
|
|
- return iconv_simple(str, "", "UTF-8");
|
|
+ return iconv_simple(str, nl_langinfo(CODESET), "UTF-8");
|
|
}
|
|
|
|
char* pa_locale_to_utf8 (const char *str) {
|
|
- return iconv_simple(str, "UTF-8", "");
|
|
+ return iconv_simple(str, "UTF-8", nl_langinfo(CODESET));
|
|
}
|
|
|
|
#else
|