[GHC] #5666: Can't use writeFile to write unicode characters.
GHC
cvs-ghc at haskell.org
Sun Feb 3 21:49:49 CET 2013
#5666: Can't use writeFile to write unicode characters.
--------------------------------+-------------------------------------------
Reporter: tsou | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.6.2
Component: libraries (other) | Version: 7.4.2
Resolution: | Keywords: unicode writeFile
Os: OpenBSD | Architecture: x86_64 (amd64)
Failure: Runtime crash | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Changes (by tsou):
* keywords: => unicode writeFile
* status: closed => new
* version: 7.0.4 => 7.4.2
* resolution: worksforme =>
Comment:
> What exactly do you mean by 'the "locale" environmental variables'?
I meant LANG and LC_ALL, etc.
> Also, do you have a "locale" program?
> If so, what is the output when you run it?
There's no locale program. Only a setlocale(3) function..
http://www.openbsd.org/cgi-
bin/man.cgi?query=setlocale&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
Usually, applications (for example tmux, mutt, etc.) that
may need to output unicode characters, understand the
locale by reading those enviromental variables I mentioned
above. I thought it would work like that with haskell, but
I was wrong.
Let me know if you need anything else.
Thanks!
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5666#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list