problems with printf: hex with capital or small letters?
Subject: problems with printf: hex with capital or small letters?
From: Leo Butler
Date: Sat, 29 Jan 2011 18:33:56 +0000 (GMT)
On Sat, 29 Jan 2011, Oliver Kullmann wrote:
< Hello,
<
< I got now Maxima running with Ecl version post-11.1.1, but there is
< one change of behaviour:
<
< printf(false,"~x",11)
<
< returned "B" before, while now it returns "b" (in general: capital letters
< before, small letters now).
<
< I can't find a precise definition of printf (Maxima refers
< to using some Lisp reference, but I can't find a Lisp reference
< which is precise enough).
<
< Are both outputs possible? Can it be sometimes "b", sometimes "B" ?
< Or is only one form true (this would be best ...).
This is almost certainly down to a change in ecl.
Try running ecl in a shell and enter
(format t "~x" 11)
There is no universal standard that hex 'digits' are uppercase.
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.