25bfe0bcf6
* Fix wrong color on NetBSD/evbearmv6hf-el with Yasushi Oshima's patch Chagnelog: 1.2.38pre2: - various bug fixes 1.2.38pre1: - xinerama fixes - app-group transient window implementation - FreeBSD ACPI support - Alexander Motin (amotin) 1.2.37: - fix centering of transient windows over parents (Bert Wesarg) - check if window is allowed to be moved, before starting movement (Bert Wesarg) - fix key handling on buttons 1.2.36: - add option TaskBarFullscreenAutoShow (default = 1) 1.2.36pre2: 2008-08-17 - regrab keyboard bindings when keyboard mapping changes 1.2.36pre1: 2008-08-07 - fix unresponsive taskbar when PassFirstClickToClient=0 - add support for sysfs interface (instead of proc) for battery status (initial code by Santiago Garcia Mantinan) - fix maximized window repositioning on fullscreen toggle - bug 1852567 - make searching for icons more consistent (iconPath first, search each directory first for all possible types - xpm, png) - Italian translation update - Korean translation update - translation cleanup: converted .po files to UTF-8
18 lines
692 B
Text
18 lines
692 B
Text
$NetBSD: patch-aa,v 1.12 2014/01/05 12:29:33 ryoon Exp $
|
|
|
|
* Support NetBSD's iconv(3)
|
|
|
|
--- src/ylocale.cc.orig 2008-01-05 07:34:25.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__) || 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));
|
|
|
|
*((YUChar *) outbuf) = 0;
|