Commit Graph

9 Commits

Author SHA1 Message Date
Sergey Astanin
86fab58e6a Allow UTF8 in ledgers (account names, descriptions).
This patch fixes broken layout of some commands when there is Unicode
text in the ledger file.

I substituted System.IO functions with System.IO.UTF8. Now all strings
are Unicode internally, and take's and length's work correctly.
In particular, add, balance, hist, print and register commands seem
to work correctly; ui is still broken for me, I didn't try web.

I decode command line arguments from UTF8 forcefully, to permit
searches for accounts and descriptions with Unicode (otherwise, it
does not work).

The patch adds an additional dependency: utf8-string.

This patch does not include new test cases.
2009-05-14 20:44:06 +00:00
Simon Michael
412a39b4aa add: show and set defaults from similar past transactions; allow description arguments 2009-04-10 13:53:23 +00:00
Simon Michael
7c155b7d1d refactor add command, more validation 2009-04-10 08:31:43 +00:00
Simon Michael
90cf39cc09 fix add doctests 2009-05-23 23:42:51 +00:00
Simon Michael
ace0d7fe79 input validation for the add command, and some doctests 2009-04-10 07:10:21 +00:00
Simon Michael
c521dc0bc2 validate added transaction before writing to file 2009-04-08 06:01:16 +00:00
Simon Michael
393e7d98d4 convert command for transforming bank CSV exports to ledger format 2009-04-10 03:10:58 +00:00
Simon Michael
aa220f6393 polish, docs 2009-04-08 06:23:49 +00:00
Simon Michael
c5e7b12a59 add command, reads transactions interactively and adds them to the ledger 2009-04-08 05:30:26 +00:00