Re: Bsdtar and archive torture tests

From: Ed Maste <emaste_at_phaedrus.sandvine.ca>
Date: Mon, 26 Sep 2005 20:16:50 -0400
On Mon, Sep 26, 2005 at 06:34:54PM -0400, Garrett Wollman wrote:

> What is your locale set to?
> 
> POSIX pax interchange format, the default for bsdtar, requires file
> names in archives to be represented in UTF-8.  <C3><A0>, when
> interpreted as UTF-8, is the character U+00E0 (LATIN SMALL LETTER A
> WITH GRAVE ACCENT).

Hmm, good point.  I haven't set it to anything; locale(1) shows
that the LC_ variables are set to "C".  So then I can see how this
happens, but it's still surprising (to me) behaviour.

I guess that, with my locale set to "C", <C3><A0> does not represent
valid characters, and it's not possible to convert to UTF-8.  I wonder
if bsdtar should emit a warning or similar in this case?

--
Ed Maste, Sandvine Incorporated
Received on Mon Sep 26 2005 - 22:16:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC