Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.userlevel > #11863

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

From Taylor R Campbell <riastradh@NetBSD.org>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject Re: CVS commit: src/external/bsd/libarchive/dist/libarchive
Date 2026-08-24 12:42 +0000
Organization Newsgate at muc.de e.V.
Message-ID <20260824124235.D8CE284E54@mail.netbsd.org> (permalink)
References <aowPxPN28c8mCa7A@exadelic.gatalith.at>

Show all headers | View raw


> Date: Mon, 24 Aug 2026 11:36:32 +0200
> From: Thomas Klausner <wiz@netbsd.org>
> 
> On Fri, Aug 21, 2026 at 10:12:25PM +0100, Taylor R Campbell wrote:
> > libarchive: Patch iconv() use to handle POSIX semantics.
> 
> A userland from August 19 was fine, but one from today is not, so I
> suspect this commit to cause an extraction error for
> pkgsrc/devel/py-meson_python.
> 
> (no LANG, LC_* set):
> 
> # tar xvzf meson_python-0.20.0.tar.gz
> tar: Pathname can't be converted from UTF-8 to current locale
> tar: Error exit delayed from previous errors
> 
> The relevant file name is
> 
> meson_python-0.20.0/tests/packages/encoding/\343\203\206\343\202\271\343\203\210.py
> 
> or
> 
> meson_python-0.20.0/tests/packages/encoding/ใƒ†ใ‚นใƒˆ.py
> 
> in a UTF-8 locale.
> 
> Is this an intended consequence of the change?

How was the archive extracted before?  Did it turn into a file called
`???.py' (i.e., with literal question marks)?

I suspect that the code was only `working' by accident before, i.e.,
failing to report failure and blithely barging ahead with output that
the libarchive authors thought of as corrupted, having had replacement
characters substituted where the input can't be represented.

On a Debian system (where bsdtar is presumably using GNU iconv), if I
try this, it fails in exactly the same way with LANG=C and works with
LANG=C.UTF-8.  archivers/bsdtar is built without any iconv at all, so
it rejects the archive altogether no matter what your locale is!  And
as far as I know, there's no way to ask bsdtar/libarchive to just
treat each path as a sequence of bytes without interpretation.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Taylor R Campbell <riastradh@NetBSD.org> - 2026-08-24 12:42 +0000
  Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Thomas Klausner <wiz@netbsd.org> - 2026-08-24 14:55 +0200
    Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Martin Husemann <martin@duskware.de> - 2026-08-24 15:15 +0200
      Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Greg Troxel <gdt@lexort.com> - 2026-08-24 09:23 -0400
        Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Martin Husemann <martin@duskware.de> - 2026-08-24 15:57 +0200
          Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Mouse <mouse@Rodents-Montreal.ORG> - 2026-08-24 11:35 -0400
            Re: CVS commit: src/external/bsd/libarchive/dist/libarchive tlaronde@kergis.com - 2026-08-24 17:53 +0200
      Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Crystal Kolipe <kolipe.c@exoticsilicon.com> - 2026-08-24 13:46 +0000
    Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Mouse <mouse@Rodents-Montreal.ORG> - 2026-08-24 09:22 -0400
    Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Taylor R Campbell <riastradh@NetBSD.org> - 2026-08-24 14:01 +0000
      Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Thomas Klausner <wiz@netbsd.org> - 2026-08-24 16:23 +0200
        Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Taylor R Campbell <riastradh@NetBSD.org> - 2026-08-24 14:52 +0000
          Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Thomas Klausner <wiz@netbsd.org> - 2026-08-24 20:23 +0200
      Re: CVS commit: src/external/bsd/libarchive/dist/libarchive Taylor R Campbell <riastradh@NetBSD.org> - 2026-08-24 14:38 +0000

csiph-web