Your message dated Tue, 20 Oct 2026 14:53:15 +0000 with message-id <CACk=CG8YHJsXf=tt0DxTT6zP9oU4_eL8o0Hm7rfqEN83msOw=g...@mail.gmail.com> and subject line #1039736 has caused the Debian Bug report #1039736, regarding ledger print creates invalid syntax to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 1039736: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039736 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: ledger Version: 3.3.0-3 Tags: upstream Hi, according to the manual page, ledger print can be used to reformat a ledger file. As such I expect it to produce valid ledger syntax. The following trips it up: $ printf "bucket X\n2222/11/11 c\n Y 1\n" bucket X 2222/11/11 c Y 1 $ printf "bucket X\n2222/11/11 c\n Y 1\n" | ledger -f - print 2222/11/11 c Y 1 $ printf "bucket X\n2222/11/11 c\n Y 1\n" | ledger -f - print | ledger -f - print; echo $? While parsing file "", line 2: While balancing transaction from streamed input: Unbalanced remainder is: 1 Amount to balance against: 1 Error: Transaction does not balance 1 $ As you can see in the second command, the bucket stanza is dropped, but the transaction is not balanced using the X bucket. Thus the third invocation fails. I think ledger print should either retain the bucket stanza or balance the transaction using the default bucket. Please consider adding an autopkgtest or unittest for this issue. Helmut
--- End Message ---
--- Begin Message ---fixed 1039736 3.4.1-3+b1 Verified in a clean chroot with ledger 3.4.1-3+b1: $ printf "bucket X\n2222/11/11 c\n Y 1\n" | ledger -f - print | ledger -f - print 2222/11/11 c Y 1 X $ echo $? -- Regards, Kirill Rekhov Currently Debian Maintainer GPG Fingerprint: 2640 769D FDA1 AAA0 F863 D1AE 5F2C 5905 519C E0A0 Debian Salsa: https://salsa.debian.org/krekhov Debian Person: https://nm.debian.org/person/krekhov Debian QA Page: https://qa.debian.org/[email protected] GitHub: https://github.com/krekhovx
--- End Message ---

