summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use correct int return type for stream input operationskanreki2021-12-0811-145/+126
| | | | | | | | This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058.
* Fix --time-colon for negative time amountsRafael Ascensão2021-09-272-7/+26
| | | | | | | | | | | | | | | While the current formula works for positive numbers, negative numbers are incorrectly represented. One of the issues comes from the fact that floor(x) < x for every x. `amount_t precision` will always be a non negative number and the code that attempts to fix the issue for negative number will never run. If we truncate the number instead, the current formula works for both positive and negative numbers without making negative numbers a corner case. So let's do that. Signed-off-by: Rafael Ascensão <rafa.almas@gmail.com>
* Fix config path in man pageCédric Barreteau2021-09-081-1/+1
|
* docs: Improve --depth documentationRahix2021-08-262-16/+14
| | | | | | | Make it clear that --depth behaves the same for balance and register reports now. Fixes: #1952
* Fix for azure ubuntu not getting correct package serverJimi Damon2021-08-251-0/+1
|
* Add mention of test cases to contrib guideMartin Michlmayr2021-08-241-0/+1
| | | | Thanks to Richard Kreuter.
* Update docs for move to GitHub ActionsMartin Michlmayr2021-08-243-8/+7
|
* Add Github Action for Ledger builds Python3 only for mac and linuxJimi Damon2021-08-241-0/+65
| | | | | - Builds for linux - Builds for macos
* Fix silent errors when reading lines from input files.Austin Wise2021-08-243-2/+22
| | | | | | | | Handle files that don't end with a new line. Throw an error when the buffer size is exceeded. Fixes #516 Contributes to #1149
* Move NEWS into repository rootRahix2021-08-241-0/+0
| | | | | To make the file easier to find, move it into the repository root - this way it is immediately visible when viewing the repo online.
* Update NEWS with all changes up to nowRahix2021-08-241-2/+38
|
* acprep: support ubuntu 20.04 focalValeriy2021-07-041-4/+20
| | | | | | | | | | | | | | | | Problem: Unable build ledger from source code at Ubuntu 20.04 Focal ./acprep dependencies will return acprep: INFO: Invoking primary phase: dependencies acprep: INFO: Executing phase: dependencies acprep: INFO: Installing Ledger's build dependencies ... acprep: INFO: Looks like you are using APT on Ubuntu focal acprep: INFO: I do not recognize your version of Ubuntu! Solution: Add 'focal' to ubuntu-releases
* Fix compilation with Boost 1.76Sam James2021-06-142-0/+4
| | | | | | | | We were previously relying on an indirect include within Boost headers. We're using scoped_ptr which is defined in <boost/smart_ptr/scoped_ptr.hpp>. Bug: https://bugs.gentoo.org/790176 Closes: https://github.com/ledger/ledger/issues/2030
* Remove reference to FreenodeMartin Michlmayr2021-06-071-1/+1
| | | | Fixes #2035
* Update IRC to Libera ChatMartin Michlmayr2021-06-023-3/+3
|
* Escape all string values output by the lisp report.Richard M Kreuter2021-05-311-6/+6
| | | | | | | Notes were already being escaped. The filename, the transaction code, the payee,, postings' account names, and postings' cost expressions were not. Everything else the lisp report prints appears to be a number or a constant-valued non-string token for Lisp.
* Show "FAILURE in exit code" when success is expectedAlan Bram2021-05-041-5/+4
| | | | Fixes #2023.
* Fix amount tokenizer re: embedded minus sign.Donald Lam2021-05-022-2/+21
| | | | | An amount may have a (single) leading minus sign, but none after that. Bug #2001 (and #1809).
* Fix IRC bullet point in README.md🎷🐛 Cat Lee Ball2021-04-191-1/+1
| | | | | | | | | | | | Currently the IRC link is broken in the rendered readme page on Github. Speculating that Github's markdown renderer might not display the text as a link since it starts with "irc://" instead of "http://" or similar. Added some text to the bullet point specifying channel and server. I left the link in-place in case the above issue is resolved at some point, or if other websites render this README.md file without the issue.
* Fix using day-of-week names for `xact` commandAlan Bram2021-04-102-13/+36
| | | | Also fix end-of-command boundary checks for keywords "at", "to", etc.
* Remove obsolete mention of Cheetah web framework.Alan Bram2021-04-071-3/+0
| | | | | | The "python/server.py" file was removed with fix for #1759. [ci skip]
* Refer to the right amount used in the exampleŁukasz Stelmach2021-03-151-1/+1
|
* Fix .yamllintMartin Michlmayr2021-02-021-2/+5
| | | | The yamllint config file was incorrect.
* Use Boost library to read argv as UTF-8 in WindowsDaniel Coonce2021-02-023-1/+16
| | | | | | | Windows uses UTF-16 for command line arguments, so use boost::nowide to convert to UTF-8. Fixes #1986
* Make test harness more Windows compatibleDaniel Coonce2021-02-023-17/+18
| | | | | Windows doesn't seem to use UTF-8 by default, so we can specify encoding='utf-8'. Also, backslashes are confusing to regex parsers.
* Have acprep use system encoding for stdin/outDaniel Coonce2021-02-021-2/+3
|
* Don't use date format %FDaniel Coonce2021-02-021-1/+1
| | | | Date format %F is not available on all platforms.
* Add support for MSYS Makefiles in acprepDaniel Coonce2021-02-021-0/+3
| | | | Useful for building in a MINGW32/64 console on Windows.
* Create consistent buffer size.Daniel Coonce2021-02-022-2/+2
|
* Fix build for x86_64-w64-mingw32Daniel Coonce2021-02-023-4/+4
| | | | Fixes #1905
* Fix issues related to payees declared on posting's metadataDiogo Trentini2021-02-028-30/+87
| | | | | Payees declared on posting's metadata are now validated with `--check-payees` option. Also, their aliases are now considered on reports as well.
* Add example of single-column CSV importKai Wohlfahrt2021-01-311-0/+10
|
* Replace if/else ladder in convert with loopKai Wohlfahrt2021-01-312-41/+19
|
* Update documentation for new convert featuresKai Wohlfahrt2021-01-311-20/+23
|
* Add debit field to convert commandKai Wohlfahrt2021-01-315-9/+45
| | | | | This changes the error reported when a transaction with no amount is imported.
* compare_by_commodity: Always return the result of the recursive callChristoph Dittmann2021-01-302-6/+25
| | | | | | | | | | | | | | | | | | | | | | | Commit 501fbc08ae5493db77bb34f4c4fbe1f3a3bc14e3 changed the behavior of this function to not return the "equal" result (==0) from the recursive call. Previously, the function returned the result of the recursive call unconditionally. The current behavior causes an assertion error for certain postings. The regression test added in this commit shows such a posting. I found through Travis CI that the old behavior was incomplete and caused unstable orderings, so reverting to the old behavior doesn't work. Instead, this change adds a fallback: If the recursive call that compares the prices numerically returns "equal", then compare the prices with their original commodity as a tie breaker. This commit does not change any existing ordering, it only adds deterministic ordering in a case that currently triggers an assertion error. This fixes issue #1998.
* format_t::truncate support wide charactersKuang-che Wu2021-01-174-11/+181
| | | | also add unit tests
* Fix contrib bash-completionmst2021-01-171-1/+1
| | | | Fix shellcheck warning SC2034: command appears unused. Fix completion script if used by zsh with bashcompinit.
* Support for building on older cmake versionsSanel Zukan2021-01-141-2/+3
| | | | | | | | Backported python cmake module expects at least cmake 3.7 (requested by policy), which will break builds on older cmake versions, like 3.5. This fix will omit python module inclusion for any cmake version less than 3.7 and the build will continue without problems.
* docs: add more value expressionsMartin Michlmayr2020-12-311-0/+12
|
* Do not treat balance assignments with 0 diff as a null postingDaraul Harris2020-12-055-1/+117
| | | | | | | | | | | Ledger is treating balance assignments that have a 0 diff as having a null posting, leading to the posting being auto-balanced and therefore causing incorrect values to be returned for the transaction. I fixed this by just making the posting equal to amt - amt (0 in the right commodity). Fixes #1942
* docs: add link to relevant sectionMartin Michlmayr2020-11-101-1/+1
| | | | Fixes #1963
* docs: clarify syntax of ~/.ledgerrcMartin Michlmayr2020-11-101-0/+1
| | | | Fixed #1954
* Fix regression in sorted_amountsMartin Michlmayr2020-10-302-1/+19
| | | | | | | | | | Commit 557ab32 ("Expose a new utility function for balances: sorted_amounts") split out some code into a separate function. Unfortunately, in the process an "if" statement was dropped, leading to amounts being shown that shouldn't be shown because they are smaller than the display precision. Fixes #1969
* default.nix: Fix testingMichael Raitza2020-10-301-2/+5
|
* Implement cryptographic access to files using GPGMEMichael Raitza2020-10-309-8/+401
|
* Add .yamllintMartin Michlmayr2020-10-301-0/+2
|
* Fix typo in ledger3.texiKuang-che Wu2020-10-131-1/+1
|
* Added Fedora build dependencies to README.mdMarin BERNARD2020-10-041-0/+10
| | | Added instructions to install build dependencies in Fedora 32.
* Document how to specify multiple debug flagsDaraul Harris2020-09-251-2/+3
| | | | | | | Document how to pass multiple debug flags to ledger using a regular expression. Fixes #1062