pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/ted



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Dec 18 09:14:41 UTC 2025

Modified Files:
        pkgsrc/editors/ted: distinfo
Added Files:
        pkgsrc/editors/ted/patches: patch-textEncoding_textConverter.c

Log Message:
ted: Support non-POSIX iconv in illumos and old NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/editors/ted/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/editors/ted/patches/patch-textEncoding_textConverter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/ted/distinfo
diff -u pkgsrc/editors/ted/distinfo:1.21 pkgsrc/editors/ted/distinfo:1.22
--- pkgsrc/editors/ted/distinfo:1.21    Fri Jul  8 07:21:23 2022
+++ pkgsrc/editors/ted/distinfo Thu Dec 18 09:14:40 2025
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.21 2022/07/08 07:21:23 nia Exp $
+$NetBSD: distinfo,v 1.22 2025/12/18 09:14:40 nia Exp $
 
 BLAKE2s (ted-2.23.src.tar.gz) = 5f32fde6f8ea58a0bf505784e5bb998341db78241ed7f0c13e53589170e950c2
 SHA512 (ted-2.23.src.tar.gz) = c6541e5a07545a08b30cb9b33429d9a7675f9252df32ccca5cdb4f2ff09978085d28d015a42922baf8c95db1ea6379a9d1088541aafd9ce45b8870212496849f
 Size (ted-2.23.src.tar.gz) = 4672208 bytes
 SHA1 (patch-Ted_configure) = e307c07ba3cfa30879a974bf93e153c0b37e28c5
 SHA1 (patch-bitmap_configure) = 36dcc05b25828f02168edf1800cf0f2860103039
+SHA1 (patch-textEncoding_textConverter.c) = 2d811c60aedab837b84c86f425a183af6d577c47

Added files:

Index: pkgsrc/editors/ted/patches/patch-textEncoding_textConverter.c
diff -u /dev/null pkgsrc/editors/ted/patches/patch-textEncoding_textConverter.c:1.1
--- /dev/null   Thu Dec 18 09:14:41 2025
+++ pkgsrc/editors/ted/patches/patch-textEncoding_textConverter.c       Thu Dec 18 09:14:40 2025
@@ -0,0 +1,34 @@
+$NetBSD: patch-textEncoding_textConverter.c,v 1.1 2025/12/18 09:14:40 nia Exp $
+
+Support non-POSIX iconv in SunOS and old NetBSD.
+
+--- textEncoding/textConverter.c.orig  2025-12-18 08:30:05.458713346 +0000
++++ textEncoding/textConverter.c
+@@ -20,6 +20,15 @@
+ #   include   "uniLegacyEncoding.h"
+ #   include   "uniLegacyMapping.h"
+ 
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV 1
++#else
++#define NETBSD_POSIX_ICONV 0
++#endif
++#endif
++
+ void textConverterSetNativeEncodingName(      TextConverter * tc,
+                                               const char *    encodingName )
+     {
+@@ -265,7 +274,11 @@ static int textConverterConvertIconv(     TextConverter * 
+           /*  return value is irrelevant: Just tells that the */
+           /*  conversion was incomplete. So does ileft > 0.   */
+ 
++#if (defined(__NetBSD__) && !NETBSD_POSIX_ICONV) || defined(__sun)
++          (void)iconv( ico, (const char **)&ibuf, &ileft, &obuf, &oleft );
++#else
+           (void)iconv( ico, &ibuf, &ileft, &obuf, &oleft );
++#endif
+ 
+           if  ( ibuf == iibuf )
+               { /*XXDEB(ibuf,iibuf);*/ break; }



Home | Main Index | Thread Index | Old Index