CVS commit: src/external/bsd/libarchive/dist/libarchive

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Fri Aug 21 22:12:25 UTC 2026

Modified Files:
	src/external/bsd/libarchive/dist/libarchive: archive_string.c

Log Message:
libarchive: Patch iconv() use to handle POSIX semantics.

Previously it assumed nonstandard GNU semantics, causing tests to
fail on NetBSD:

/usr/src/external/bsd/libarchive/dist/libarchive/test/test_archive_string_conversion.c:950:
-1 != r
      -1=-1 (0xffffffffffffffff, 01777777777777777777777)
      r=0 (0x0, 00)
/usr/src/external/bsd/libarchive/dist/libarchive/test/test_archive_string_conversion.c:951:
0 != mstr.aes_set & AES_SET_MBS
      0=0 (0x0, 00)
      mstr.aes_set & AES_SET_MBS=1 (0x1, 01)

Upstream bug report:
Issue #3413: test_archive_string_conversion_fail_c failure despite
correct iconv(3)
https://github.com/libarchive/libarchive/issues/3413

Patch proposed upstream:
Pull request #3416: Treat non-identical conversions in iconv as
failure.
https://github.com/libarchive/libarchive/pull/3416

PR lib/60560: libarchive tests are failing


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.8 -r1.2 \
    src/external/bsd/libarchive/dist/libarchive/archive_string.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.