On Do, Apr 08 2010, Kari Pahula wrote: > On Wed, Apr 07, 2010 at 04:31:07PM +0200, henry atting wrote: >> BTW, on the hledger website are some older builds to download which are >> working fine. > > Could you please try narrowing down which was the last version that > worked correctly for you? It'd help if I had some simple test case > for this. It's something more subtle if putStrLn indeed outputs > correct UTF-8.
The version which works (downloaded as binary from http://hledger.org/binaries/) is: hledger-0.7 with vty The current version that does not work correctly (installed with `cabal install`) is: hledger-0.8 with vty If I use the simple ncurses ui the euro sign and umlauts are displayed correctly. (in both versions) The command `hledger bal' for example should show a balance of your accounts which are written to a text file named e.g. ledger.dat So if I spent 2.00 for the office something like €2.00 Büro (for office) should appear. It does so flawelessly with the binary. With version 0.8 you see placeholders instead: â¬2.19 Büro When using `hledger add' to add a new entry to the ledger file the prompt offers placeholders too: amount 1 [â¬10.00]: >> >> In ghci: > >> Yes, with putStrLn it works fine. > > Just to test this, could you please see if you can repeat this. I > used xterm, which allows switching utf-8 support on and off from the > control-right click menu. Make sure that the support is on, at start. > > $ LC_CTYPE=de_DE.UTF-8 ghci > Prelude> putStrLn "öäöäööä" (type in some umlauts) > öäöäööä (should show them) > Prelude> putStrLn "öäöäööä" (arrow up and switch off utf-8 support) > öäöäööä (should show uninterpreted) > Prelude> putStrLn "öäöäööä" (arrow up and enable utf-8) > öäöäööä (should show umlauts again) The switching of utf-8 support in xterm did not work so I used mlterm which should be just as well. The output looks smilar: do! LC_CTYPE=de_DE.UTF-8 ghci GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> putStrLn "öäöäööä" öäöäööä Prelude> putStrLn "öäöäööä" öÀöÀööÀ Prelude> putStrLn "öÀöÀööÀ" öäöäööä -- http://literaturlatenight.de -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org