head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.18 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.16 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.14 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.12 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.10 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.8 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.6 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.4 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.2 pkgsrc-2024Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2026.06.28.16.29.15; author wiz; state dead; branches; next 1.1; commitid gPzrDg7umQlFhALG; 1.1 date 2024.05.02.13.27.04; author riastradh; state Exp; branches; next ; commitid ihz8bpMChVqKzq8F; desc @@ 1.2 log @ledger: update to 3.4.1. Based on wip/ledger by atomicules with some fixes. 3.4.1 Fix version number in binary Assets 2 Source code (zip) Oct 26, 2025 Source code (tar.gz) Oct 26, 2025 1 person reacted 3.4.0 Oct 22, 2025 @@jwiegley jwiegley v3.4.0 ddb7c89 3.4.0 Critical Bug Fixes Fix segfault in metadata validation (issue #1800) Fix divide by zero (bugs #777 and #2207) Fix use-after-free with regex_match() Fix bucket transactions ignored with reg --related (bug #2220) Restore expr context after calc (bugs #2330 and #2343) Date and Year Handling Fix leap year dates with apply year directive (bug #2468) Fix xact command to properly respect last year directive (bug #2413) Fix timelog balance assertions with value conversion New Features Add support for hash chaining with --hashes option for transaction integrity verification Add commodity swaps feature over a base commodity Add --align-intervals option for reporting Add --lisp-date-format option for lisp output (bug #1206) Add yday shortcut for "yesterday" File Handling Skip files with invalid UTF-8 names in include directive (bug #2421) Allow automatic transactions to create accounts with --pedantic (bug #2417) Make pricedb output deterministic (bug #1783) Python Support Update required Python version to 3.10 (minimum 3.9) Fix Python 3.12 deprecation warnings Add Python bindings for commodity value_t and roundto function Remove Python 2 support from tests Build System Updates Update to C++17 standard Update to Boost 1.86.0 (minimum 1.72.0) Update required CMake to 3.16.2 Add support for Ubuntu 24.04 Noble Add build support for readline Display Improvements Display parent accounts with one child if they contain posts Align amounts even when account names are long Fix percentile balance report of time commodity @ text @$NetBSD: patch-src_amount.cc,v 1.1 2024/05/02 13:27:04 riastradh Exp $ Fix ctype abuse. https://github.com/ledger/ledger/pull/2341 --- src/amount.cc.orig 2023-03-30 07:40:48.000000000 +0000 +++ src/amount.cc @@@@ -983,7 +983,8 @@@@ namespace { std::isdigit(c) || c == '.' || c == ','); string::size_type len = std::strlen(buf); - while (len > 0 && ! std::isdigit(buf[len - 1])) { + while (len > 0 && + ! std::isdigit(static_cast(buf[len - 1]))) { buf[--len] = '\0'; in.unget(); } @@@@ -1018,7 +1019,7 @@@@ bool amount_t::parse(std::istream& in, c parse_quantity(in, quant); if (! in.eof() && ((n = static_cast(in.peek())) != '\n')) { - if (std::isspace(n)) + if (std::isspace(static_cast(n))) comm_flags |= COMMODITY_STYLE_SEPARATED; commodity_t::parse_symbol(in, symbol); @@@@ -1034,7 +1035,7 @@@@ bool amount_t::parse(std::istream& in, c commodity_t::parse_symbol(in, symbol); if (! in.eof() && ((n = static_cast(in.peek())) != '\n')) { - if (std::isspace(static_cast(in.peek()))) + if (std::isspace(in.peek())) comm_flags |= COMMODITY_STYLE_SEPARATED; parse_quantity(in, quant); @ 1.1 log @finance/ledger: Fix ctype abuse. @ text @d1 1 a1 1 $NetBSD$ @