Is there a ghc "wontfix" bug ticket for this? Perhaps we can make a small C test case and send it to the Microsoft people. Some[1] are reporting success with Unicode console output.<div><br></div><div>David<br><div>
<br></div><div>[1] <a href="http://www.codeproject.com/KB/cpp/unicode_console_output.aspx">http://www.codeproject.com/KB/cpp/unicode_console_output.aspx</a><br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 3:49 AM, Krasimir Angelov <span dir="ltr"><<a href="mailto:kr.angelov@gmail.com">kr.angelov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is evidence for the broken Unicode support in the Windows<br>
terminal and not a problem with GHC. I experienced the same many<br>
times.<br>
<br>
2010/11/2 David Sankel <<a href="mailto:camior@gmail.com">camior@gmail.com</a>>:<br>
<div><div></div><div class="h5">><br>
> On Mon, Nov 1, 2010 at 10:20 PM, David Sankel <<a href="mailto:camior@gmail.com">camior@gmail.com</a>> wrote:<br>
>><br>
>> Hello all,<br>
>> I'm attempting to output some Unicode on the windows console. I set my<br>
>> windows console code page to utf-8 using "chcp 65001".<br>
>> The program:<br>
>><br>
>> -- Test.hs<br>
>> main = putStr "λ.x→x"<br>
>><br>
>> The output of `runghc Test.hs`:<br>
>><br>
>> λ.x→xxxx<br>
>><br>
>> From within ghci, typing `main`:<br>
>><br>
>> λ*** Exception: <stdout>: hPutChar: permission denied (Permission denied)<br>
>><br>
>> I suspect both of these outputs are evidence of bugs. Might I be doing<br>
>> something wrong? (aside from using windows ;))<br>
><br>
> I forgot to mention that I'm using Windows XP with ghc 6.12.3.<br>
><br>
><br>
> --<br>
> David Sankel<br>
> Sankel Software<br>
> <a href="http://www.sankelsoftware.com" target="_blank">www.sankelsoftware.com</a><br>
> 585 617 4748 (Office)<br>
><br>
</div></div>> _______________________________________________<br>
> Glasgow-haskell-users mailing list<br>
> <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>David Sankel<br>Sankel Software<br><a href="http://www.sankelsoftware.com">www.sankelsoftware.com</a><br>585 617 4748 (Office)<br>
</div></div>