diff options
Diffstat (limited to 'wm/icewm/patches/patch-aa')
-rw-r--r-- | wm/icewm/patches/patch-aa | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/wm/icewm/patches/patch-aa b/wm/icewm/patches/patch-aa new file mode 100644 index 00000000000..8aa3f7d4bc4 --- /dev/null +++ b/wm/icewm/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.6 2006/03/06 21:53:04 joerg Exp $ + +--- src/ylocale.cc.orig 2006-02-03 06:24:27.000000000 +0000 ++++ src/ylocale.cc +@@ -152,7 +152,11 @@ YUChar *YLocale::unicodeString(const YLC + char * inbuf((char *) lStr), * outbuf((char *) uStr); + size_t inlen(lLen), outlen(4 * lLen); + ++#if defined(__NetBSD__) + 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)); + + *((YUChar *) outbuf) = 0; |