summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp')
-rw-r--r--editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp b/editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp
new file mode 100644
index 00000000000..49a3f973a9e
--- /dev/null
+++ b/editors/abiword/patches/patch-src_af_util_xp_ut__iconv.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_af_util_xp_ut__iconv.cpp,v 1.1 2015/09/13 21:32:13 nros Exp $
+* NetBSD uses citrus iconv that has UCS-4
+--- src/af/util/xp/ut_iconv.cpp.orig 2013-04-07 13:53:03.000000000 +0000
++++ src/af/util/xp/ut_iconv.cpp
+@@ -267,9 +267,11 @@ const char * ucs4Internal ()
+ #elif defined(_LIBICONV_H)
+ // libiconv seems to prefer UCS-4-INTERNAL to UCS-4BE and UCS-4LE
+ return "UCS-4-INTERNAL";
+-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+ // we special case the BSDs since spelling just doesn't work
+ return "UCS4";
++#elif defined(__NetBSD__)
++ return "UCS-4";
+ #else
+ // general case, found by hub and dom
+ if (s_ucs4_internal == 0)