summaryrefslogtreecommitdiff
path: root/wm/icewm/patches/patch-aa
blob: a9bfd5718d43195bea5d38026581ac1ba07adf66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-aa,v 1.10 2008/06/16 10:17:56 hauke Exp $

--- src/ylocale.cc.orig	2007-12-27 19:16:17.000000000 +0100
+++ src/ylocale.cc	2008-06-08 15:43:51.000000000 +0200
@@ -153,5 +153,9 @@
     size_t inlen(lLen), outlen(4 * lLen);
 
+#if defined(__NetBSD__) || defined(__sun)
+    if (0 > (int) iconv(instance->toUnicode, const_cast<const char **>(&inbuf), &inlen, &outbuf, &outlen))
+#else
     if (0 > (int) iconv(instance->toUnicode, &inbuf, &inlen, &outbuf, &outlen))
+#endif
         warn(_("Invalid multibyte string \"%s\": %s"), lStr, strerror(errno));