Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/external/bsd/bc/dist



On Monday 10 April 2017 02:26:50 coypu%sdf.org@localhost wrote:
> -DIGIT [0-9A-F]
> +DIGIT [0-9A-Z]
> 
> Looks off, is that intended?

$ ./bc
ibase
10
obase
10
ibase = Z+1
ibase
36
ZZZZ
1679615
obase = Z+1
obase
 01 00
ZZZZ
 35 35 35 35
1Z36AQ16836
 01 35 03 06 10 26 01 06 08 03 06
quit

The real question is outputting stuff in base 36 should also use G-Z, but that
might need to be a flag to bc because that breaks POSIX output.  Allowing
base 36 inputs doesn't cause problems with existing programs.

--Phil




Home | Main Index | Thread Index | Old Index