#1147477 Fails to parse journal: Error: User defined source 1: User defined error code 1

Package:
ledger
Source:
ledger
Description:
command-line double-entry accounting program
Submitter:
martin f krafft
Date:
2026-10-19 11:53:03 UTC
Severity:
normal
#1147477#3
Date:
2026-09-12 08:40:49 UTC
From:
To:
With -2, a previously fine journal now fails to be parsed. Ledger exits
with

```
% ledger -f journal.ledger bal
Error: User defined source 1: User defined error code 1
```

I've tried other commands, and even simple journals, or reading
`/dev/null` yield this problem. Downgrading to -1 fixes this problem for
now.

#1147477#8
Date:
2026-10-13 14:39:11 UTC
From:
To:
Could you please retest this issue with `ledger 3.4.1-3+b1`, currently available in unstable?

I tested it in a fresh Debian sid environment and could not reproduce the failure.

Script:

$ cat > journal.ledger <<'EOF'
2026-01-01 Test
     Assets:Cash  10 EUR
     Income:Test
EOF

$ ledger -f journal.ledger bal
               10 EUR  Assets:Cash
              -10 EUR  Income:Test
--------------------
                    0

$ ledger -f /dev/null bal
$ echo $?
0

Environment:

$ apt-cache policy ledger
ledger:
   Installed: 3.4.1-3+b1
   Candidate: 3.4.1-3+b1
   Version table:
  *** 3.4.1-3+b1 500
         500 http://deb.debian.org/debian sid/main amd64 Packages
         100 /var/lib/dpkg/status

$ cat /etc/debian_version
forky/sid

I tested this in a sid chroot.

#1147477#13
Date:
2026-10-19 14:46:03 UTC
From:
To:
fixed 1147477 3.4.1-3+b1
--
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/developer.php?login=krekhov.dev@gmail.com

GitHub: https://github.com/krekhovx