pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/pulseaudio avoid GNUism in iconv usage



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d99169281239
branches:  trunk
changeset: 553458:d99169281239
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Jan 21 15:40:20 2009 +0000

description:
avoid GNUism in iconv usage

diffstat:

 audio/pulseaudio/distinfo         |   3 ++-
 audio/pulseaudio/patches/patch-ca |  26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 18789a007741 -r d99169281239 audio/pulseaudio/distinfo
--- a/audio/pulseaudio/distinfo Wed Jan 21 15:19:27 2009 +0000
+++ b/audio/pulseaudio/distinfo Wed Jan 21 15:40:20 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2009/01/19 14:19:00 jmcneill Exp $
+$NetBSD: distinfo,v 1.13 2009/01/21 15:40:20 drochner Exp $
 
 SHA1 (pulseaudio-0.9.14.tar.gz) = a0fb7c21ee21178e102a1e5a11d8ac474e6f5da4
 RMD160 (pulseaudio-0.9.14.tar.gz) = c7722d0d0240555edf917391989ad2e1cd4eb6b1
@@ -16,3 +16,4 @@
 SHA1 (patch-ak) = 2a2f80a2ab4b30f2daaebdb1ad0bcb54345743cd
 SHA1 (patch-ba) = da9742d49ecb409cd13bee4468e64f982c03cffe
 SHA1 (patch-bb) = ae0209dac352df7abfcf66c452f2ebb91e35e42a
+SHA1 (patch-ca) = 75eef8955fa368a144b9e55258389332a177ed6c
diff -r 18789a007741 -r d99169281239 audio/pulseaudio/patches/patch-ca
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/pulseaudio/patches/patch-ca Wed Jan 21 15:40:20 2009 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ca,v 1.1 2009/01/21 15:40:20 drochner Exp $
+
+--- src/pulse/utf8.c.orig      2008-09-03 23:13:43.000000000 +0200
++++ src/pulse/utf8.c
+@@ -55,6 +55,7 @@
+ 
+ #ifdef HAVE_ICONV
+ #include <iconv.h>
++#include <langinfo.h>
+ #endif
+ 
+ #include <pulse/xmalloc.h>
+@@ -243,11 +244,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



Home | Main Index | Thread Index | Old Index