Re: [PATCH] Try URI quoting for embedded TAB and LF in pathnames
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Oct 12, 2005, 19:07 UTC
- Message-ID
- <Pine.LNX.4.63.0510121452030.23242@iabervon.org>
- In-Reply-To
- <Pine.LNX.4.64.0510120749230.14597@g5.osdl.org>
On Wed, 12 Oct 2005, Linus Torvalds wrote:
> So if you want to support any other locale than UTF-8, you need to escape > them. Assuming you want to escape control characters at all, of course (I > still think it's perfectly fine to just let the raw mess through and > depend on escaping at higher levels)
I think it's actually sufficient to escape 0x00-0x1f and 0x7f; those ranges are both easy and, as far as I can tell, include all of the control characters that do annoying things. I think escape, backspace, delete, and bell are the only ones we'd rather the terminal not get; beyond that, patches with screwy filenames look screwy, but don't screw up anything outside of the filename.
-Daniel *This .sig left intentionally blank*