-
-
Notifications
You must be signed in to change notification settings - Fork 520
Closed
Description
I can't seem to get the exchange flag working under Windows, for currencies represented using unicode characters.
foreign_currency.ledger
commodity £
default
2013/04/01 Transaction Paid Using USD
Expenses 100 USD @ (£ 1/2)
Assets
2013/04/02 Transaction Paid Using £
Expenses £100
Assets
Expected Results (Working on MacOSX)
> ledger -f foreign_currency.ledger balance --exchange £
£-150 Assets
£150 Expenses
--------------------
0
Unexpected Results (Windows 10)
> ledger.exe -f foreign_currency.ledger balance --exchange £
£-150 Assets
100 USD
£100 Expenses
--------------------
100 USD
£-50
I have tried changing the code page to Unicode for the Windows command prompt
> chcp 65001
but still the same results.
If I set the exchange flag to USD, the results are correct.
> ledger.exe -f foreign_currency.ledger balance --exchange USD
-300 USD Assets
300 USD Expenses
--------------------
0
Any ideas what I'm doing wrong under Windows?
I'm using the pre-compiled Windows Ledger binary v3.2.1 from https://github.com/FullofQuarks/Windows-Ledger-Binaries/releases/tag/v3.2.1
Metadata
Metadata
Assignees
Labels
No labels