Aazure.663
net.bugs.4bsd
utcsrgv!utzoo!decvax!ucbvax!ARPAVAX:CAD:teklabs!tekmdp!azure!steveg
Mon Mar 29 18:27:25 1982
Vax printf undocumented feature
I just noticed that on the Vax (4.1bsd) printf, if you use an upper
case letter in a hex format (e.g. "%X" or "%08X" or similar) you get
the letter portion on the hex stuff in upper case, while if you use the
lower case letter in the format (e.g. "%lx" or "%08lx") you get lower
case hex letters.  On our V7 11/70 (teklabs), you always get lower case
hex letters (although I don't remember whether we fixed that or it came
that way).

I have not actually looked at the code, just observed external behavior.

I like the ability to specify the style of letters since I like lower
case (although lots of folks consider this a religious issue).  I'm not
sure I go along with 4.1bsd in how you specify the conversion - it
would have problems working on 11's when you want upper case integer
(16 bit) output.

steveg glaser

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.