Package: maxima Version: 5.41.0-3 Severity: normal Dear Maintainer,
I wanted to format a list of integers in base 16, but the default output was returned in mixed case for the letters A-F. When I added case-conversion to the format string, maxima suddenly ends up in an infinite memory-consuming loop. The exact same format string works in lisp within maxima. Example: This works as expected and prints the list as a comma-separated list of hexadecimal integers in upper case: > (%i1) :lisp (format t "~{0x~:@(~x~)~^, ~}~%" '(1000 2000 3000 4000) ) > 0x3E8, 0x7D0, 0xBB8, 0xFA0 > NIL > (%i1) while this hangs indefinitely (notice exact same string and values) > (%i1) printf(true, "~{0x~:@(~x~)~^, ~}~%", [1000,2000,3000,4000] ); This started happening when I added the case conversion. If I remove it, the output is as expected: > (%i4) printf(true, "~{0x~x~^, ~}~%", [1000,2000,3000,4000] ); > 0x3E8, 0x7D0, 0xBB8, 0xFA0 > (%o4) false -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages maxima depends on: ii libc6 2.27-5 ii libgmp10 2:6.1.2+dfsg-3 ii libreadline7 7.0-5 ii libx11-6 2:1.6.5-1 Versions of packages maxima recommends: ii gnuplot-x11 5.2.2+dfsg1-2 ii maxima-share 5.41.0-3 Versions of packages maxima suggests: ii maxima-doc 5.41.0-3 pn maxima-emacs <none> pn texmacs <none> ii tk [wish] 8.6.0+9 pn xmaxima <none> -- no debconf information