Ludovic Courtès c3b1cfe76b
read-print: Guess the base to use for integers being printed.
Fixes <https://issues.guix.gnu.org/57090>.
Reported by Christopher Rodriguez <yewscion@gmail.com>.

* guix/read-print.scm (%symbols-followed-by-octal-integers)
(%symbols-followed-by-hexadecimal-integers): New variables.
* guix/read-print.scm (integer->string): New procedure.
(pretty-print-with-comments): Use it.
* tests/read-print.scm: Add test.
2022-09-01 18:31:26 +02:00
..
2021-09-17 01:27:40 +02:00
2022-05-22 01:07:52 +02:00
2022-05-25 09:28:43 +02:00
2022-02-14 11:23:07 +01:00
2021-09-28 22:00:47 +02:00
2022-05-25 09:28:43 +02:00
2022-06-15 10:18:34 +02:00
2021-04-12 18:42:22 +02:00
2021-12-23 10:54:00 +01:00
2022-07-10 23:57:14 +02:00
2022-07-01 12:10:29 +02:00