bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dircolors database documentation


From: Andreas Schwab
Subject: Re: dircolors database documentation
Date: Wed, 19 Oct 2005 12:07:41 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

address@hidden (Eric Blake) writes:

> A related problem - right now, ls parses an infinite number of digits
> in octal and hex escapes.  It would probably be wiser if we changed
> it to parse only up to what will fit in MAX_CHAR, then end the escape.
> The upshot of this is that with 8-bit char, ls parses "\477" as '\47' '7',
> rather than overflowing an 8-bit char.  Then on the dircolors side,
> we would have to turn NUL into \000 instead of just \0 to ensure
> that we don't misparse the dircolors input 'NUL' '5' into the ls
> character '\05'.

How about adopting the C rule of parsing and use at most 3 digits in octal
escapes?

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]