From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Timothy Miller <miller@techsource.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Kernel printk format string compression: C syntax problem
Date: Fri, 6 Jun 2003 15:16:42 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0306061515200.8465@chaos> (raw)
In-Reply-To: <3EE0E227.7080107@techsource.com>
On Fri, 6 Jun 2003, Timothy Miller wrote:
>
>
> Richard B. Johnson wrote:
>
> >
> > Aren't octal values supposed to always start with '0'? I remember
> > this from some formal training when 'C' replaced Pascal. The
> > second "printf()" should __not__ TAB over the text. With GNU
> > gcc, it does. This doesn't mean that it's "correct", only that
> > GNU does it that way.
> >
>
> Octal values start with '0' when they're numerical values. When they're
> in strings as escape characters, the C syntax is "\nnn". Every
> reference I find says that. Some script languages, however require that
> octal values start with '0' in strings, so csh would expect to see "\0nnn".
>
> Additionally, when I compile in the dictionary into the program that
> does the string replacement, I get no complaints, although every
> character in there is "\nnn".
>
So why the hell did you forward this to linux-kernel when I answered
you privately?
next prev parent reply other threads:[~2003-06-06 19:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-06 17:27 Timothy Miller
2003-06-06 18:01 ` Bryan O'Sullivan
2003-06-06 18:50 ` Timothy Miller
[not found] ` <Pine.LNX.4.53.0306061330520.7633@chaos>
2003-06-06 18:49 ` Timothy Miller
2003-06-06 19:16 ` Richard B. Johnson [this message]
2003-06-06 19:31 ` Timothy Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.53.0306061515200.8465@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miller@techsource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®