problems with printf: hex with capital or small letters?
Subject: problems with printf: hex with capital or small letters?
From: Oliver Kullmann
Date: Mon, 31 Jan 2011 20:52:51 +0000
Okay, I use supcase now to fix upper-case.
thanks
Oliver
On Sat, Jan 29, 2011 at 06:33:56PM +0000, Leo Butler wrote:
>
>
> 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
>