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.

> >> 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)

Attachment: signature.asc
Description: Digital signature

Reply via email to