tech-toolchain archive

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

Re: make :ts documentation



On Mon, Feb 29, 2016 at 09:47:19 -0800, Simon J. Gerraty wrote:

> David Holland <dholland-tech%netbsd.org@localhost> wrote:
> > It should be the same as C escapes unless there's a compelling reason
> > to the contrary, which there isn't.
> 
> I don't disagree - but does that mean that
> 
> \111 should be taken as octal?
> 
> as the person complained?

Yes, in C it's octal.  Octal sequences are limited to three digits and
the leading zero is not required.

The leading zero in the octal escape sequence is necessary only for
disambiguation in cases when an octal escape sequence is followed by
another octal digit that is not part of the character code,
e.g. "\0130" is the same as "\013""0", the same as "\13""0".

-uwe


Home | Main Index | Thread Index | Old Index