It is possible to output some non Latin1 symbols if you use the wide
string API but not all of them. Basically the console supports all
European language but nothing else - Latin, Cyrillic and Greek.


2010/11/2 David Sankel <cam...@gmail.com>:
> 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.
> David
>
> [1] http://www.codeproject.com/KB/cpp/unicode_console_output.aspx
>
> On Tue, Nov 2, 2010 at 3:49 AM, Krasimir Angelov <kr.ange...@gmail.com>
> wrote:
>>
>> This is evidence for the broken Unicode support in the Windows
>> terminal and not a problem with GHC. I experienced the same many
>> times.
>>
>> 2010/11/2 David Sankel <cam...@gmail.com>:
>> >
>> > On Mon, Nov 1, 2010 at 10:20 PM, David Sankel <cam...@gmail.com> wrote:
>> >>
>> >> Hello all,
>> >> I'm attempting to output some Unicode on the windows console. I set my
>> >> windows console code page to utf-8 using "chcp 65001".
>> >> The program:
>> >>
>> >> -- Test.hs
>> >> main = putStr "λ.x→x"
>> >>
>> >> The output of `runghc Test.hs`:
>> >>
>> >> λ.x→xxxx
>> >>
>> >> From within ghci, typing `main`:
>> >>
>> >> λ*** Exception: <stdout>: hPutChar: permission denied (Permission
>> >> denied)
>> >>
>> >> I suspect both of these outputs are evidence of bugs. Might I be doing
>> >> something wrong? (aside from using windows ;))
>> >
>> > I forgot to mention that I'm using Windows XP with ghc 6.12.3.
>> >
>> >
>> > --
>> > David Sankel
>> > Sankel Software
>> > www.sankelsoftware.com
>> > 585 617 4748 (Office)
>> >
>> > _______________________________________________
>> > Glasgow-haskell-users mailing list
>> > Glasgow-haskell-users@haskell.org
>> > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>> >
>> >
>
>
>
> --
> David Sankel
> Sankel Software
> www.sankelsoftware.com
> 585 617 4748 (Office)
>
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to