[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] Re: Bug#416701: cpio -tv vs. UTF-8 filenames
From: |
Clint Adams |
Subject: |
[Bug-cpio] Re: Bug#416701: cpio -tv vs. UTF-8 filenames |
Date: |
Fri, 30 Mar 2007 14:15:19 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Mar 30, 2007 at 01:40:12AM +0800, Dan Jacobson wrote:
> With -t, adding -v causes one's UTF-8 filenames to become octal _with
> no switch available to correct the situation!_
print_name_with_quoting() unconditionally escapes filename characters
outside the range (c > 040 && c < 0177). Since it's doing this one
octet at a time, iswprint() can't be used to do this in a way friendly
to any multi-byte character sets.
Adding a switch to disable the escaping, and doing lookaheads for wide
characters would both seem potentially disadvantageous.