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


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

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

From Martin Husemann <martin@duskware.de>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject Re: CVS commit: src/external/bsd/libarchive/dist/libarchive
Date 2026-08-24 15:57 +0200
Organization Newsgate at muc.de e.V.
Message-ID <aoxNrCSZfMTxoVBg@big-apple.aprisoft.de> (permalink)
References <> <rmizeyb1wk3.fsf@s1.lexort.com>

Show all headers | View raw


On Mon, Aug 24, 2026 at 09:23:56AM -0400, Greg Troxel wrote:
> What kind of conversions do you think are happening with libarchive, and
> why do you think those conversions are a good idea?  (Genuine question;
> I am fuzzy about beyond-ascii in filenames in general)

The way (I think) bsdtar and libarchive are structured, the filename
conversion (depending on locale) happens in a totaly different part
from the storage/decoding.

Many other archive formats (e.g. zip, rar and pax) define UTF8 as internal
file name encoding, so assuming that for the undefined parts of ancient
things like ustar is a (maybe unpopular but) reasonable choice.

While the unix-ish interpretation that mouse potinted at is great
when using the archive in the same context it was created, it
forces other extractors to guess the encoding, which is pretty bad.

I am one of the few remaining users (I guess) of non-ASCII and non-UTF8
locales. And one day I will go (of course not verbatim; have a script
go) through all files stored on my NASes and rename them from
ISO-8859-1 to UTF8.

Untill then I will have to live with e.g. "unrar" failiing to extract
archives with filenames containing funny printing marks or air quotes
(or I guess emojies). Workaround: temporarily set LC_CTYPE to UTF8
and manually rename afterwards.


Martin

--
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 — Previous in thread | 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