Vax printf undocumented feature

teklabs!tekmdp!azure!steveg teklabs!tekmdp!azure!steveg
Mon Mar 29 18:27:25 AEST 1982


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



More information about the Comp.bugs.4bsd.ucb-fixes mailing list