#905316 maxima: printf hangs with format string, works in lisp mode

Package:
maxima
Source:
maxima
Description:
Computer algebra system -- base system
Submitter:
Anders Andersson
Date:
2025-05-15 16:15:01 UTC
Severity:
normal
#905316#5
Date:
2018-08-03 03:48:44 UTC
From:
To:
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:

while this hangs indefinitely (notice exact same string and values)


This started happening when I added the case conversion. If I remove it, the
output is as expected:

#905316#10
Date:
2025-05-14 21:55:18 UTC
From:
To:
tags 905316 forwarded maxima-discuss@lists.sourceforge.net
thanks

Greetings, and thanks for your report!
=============================================================================
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:

while this hangs indefinitely (notice exact same string and values)


This started happening when I added the case conversion. If I remove it, the
output is as expected:
=============================================================================

Take care,

#905316#15
Date:
2025-05-15 14:24:12 UTC
From:
To:
forwarded 905316 maxima-discuss@lists.sourceforge.net
thanks

Greetings, and thanks for your report!
=============================================================================
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:

while this hangs indefinitely (notice exact same string and values)


This started happening when I added the case conversion. If I remove it, the
output is as expected:
=============================================================================

Take care,

#905316#22
Date:
2025-05-15 16:10:35 UTC
From:
To: