
L.S., When I try putStrLn "ß" (Eszett (sharp S)) in WinGhci, the interpreter seems to have disappeared; ctrl-C gives the message "Interrupted" in a separate window, but no new prompt. When I start GHCi in a shell, the interpreter displays: Prelude> print "ß" "\223" Is this a known issue? Other experiments with WinGhci:
print "αγδ" "a?d" (Trying to print alpha, gamma, delta.)
print "β" (Trying to print beta) interpreter hangs again.
Details: - WinGhci 1.0.2 - GHCi, version 6.12.3 - Windows XP Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html --

"Henk-Jan van Tuyl"
L.S.,
When I try putStrLn "ß" (Eszett (sharp S)) in WinGhci, the interpreter seems to have disappeared; ctrl-C gives the message "Interrupted" in a separate window, but no new prompt.
That's weird; possibly an encoding problem>
When I start GHCi in a shell, the interpreter displays: Prelude> print "ß" "\223"
Is this a known issue?
Other experiments with WinGhci:
print "αγδ" "a?d" (Trying to print alpha, gamma, delta.)
print "β" (Trying to print beta) interpreter hangs again.
Details: - WinGhci 1.0.2 - GHCi, version 6.12.3 - Windows XP
This is an encoding problem; remember that "print = putStrLn . show", so it escapes the String first (to a unicode code-point). ,---- | Prelude> print "ß" | "\223" | Prelude> putStrLn "ß" | ß `---- (running ghci within a terminal on a Linux-based box). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Using the latest version (WinGHCi 1.0.6) and GHCi 6.12.3, I get:
*
Prelude>* putStrLn "ß"
ß
*
Prelude>* print "ß"
"\223"
*
Prelude>* putStr "αγδ"
*** Exception: <stdout>: hPutChar: invalid argument (character is not in the
code page)
and this is consistent with output I get when using GHCi on a console on
Windows.
Cheers,
Pepe
2010/8/13 Henk-Jan van Tuyl
L.S.,
When I try putStrLn "ß" (Eszett (sharp S)) in WinGhci, the interpreter seems to have disappeared; ctrl-C gives the message "Interrupted" in a separate window, but no new prompt. When I start GHCi in a shell, the interpreter displays: Prelude> print "ß" "\223"
Is this a known issue?
Other experiments with WinGhci:
print "αγδ" "a?d" (Trying to print alpha, gamma, delta.)
print "β" (Trying to print beta) interpreter hangs again.
Details: - WinGhci 1.0.2 - GHCi, version 6.12.3 - Windows XP
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://van.tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I've tested haskell on CJK system. For CJK characters, the IO can work great
on file, but awfully on console. I think it is the matter from Winodws.
We can not set utf8 on Windows like linux, instead of that they use code
page. It looks that greek characters doesnot support on your system. You
shall turn on the support in Console Panel/Regional and Language Options.
Sorry for my english, it's not great.
On Tue, Aug 17, 2010 at 2:57 AM, Pepe Gallardo
Using the latest version (WinGHCi 1.0.6) and GHCi 6.12.3, I get:
*
Prelude> * putStrLn "ß"
ß *
Prelude> * print "ß"
"\223" *
Prelude> * putStr "αγδ"
*** Exception: <stdout>: hPutChar: invalid argument (character is not in the code page)
and this is consistent with output I get when using GHCi on a console on Windows.
Cheers, Pepe
2010/8/13 Henk-Jan van Tuyl
L.S.,
When I try putStrLn "ß" (Eszett (sharp S)) in WinGhci, the interpreter seems to have disappeared; ctrl-C gives the message "Interrupted" in a separate window, but no new prompt. When I start GHCi in a shell, the interpreter displays: Prelude> print "ß" "\223"
Is this a known issue?
Other experiments with WinGhci:
print "αγδ" "a?d" (Trying to print alpha, gamma, delta.)
print "β" (Trying to print beta) interpreter hangs again.
Details: - WinGhci 1.0.2 - GHCi, version 6.12.3 - Windows XP
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://van.tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
anderson leo
-
Henk-Jan van Tuyl
-
Ivan Lazar Miljenovic
-
Pepe Gallardo