[Haskell-cafe] Re: [Haskell] ANNOUNCE: jhc 0.7.4

wren ng thornton wren at freegeek.org
Thu Jul 15 22:43:51 EDT 2010

Brandon S Allbery KF8NH wrote:
> wren is half right:  at the level of Unixy APIs (and this includes anything
> that goes on in a Terminal window and anything that you will be doing from
> Haskell) you use UTF8, but OSX APIs --- that is, Carbon and Cocoa --- use
> UTF16.  So for the purposes of ghc/jhc OSX is UTF8, but if someone wrote a
> "fully native" Cocoa-based runtime it would use UTF16.  (Compare Win32 APIs
> to mingw APIs; very similar situation.)

Yeah, I've been doing too much Cocoa lately ;)  Unfortunately, certain
parts of Cocoa aren't UTF16, which is annoying. Standard terminal stuff
should all be UTF8 though.

Live well,

More information about the Haskell-Cafe mailing list