* Matthias Kilian <k...@outback.escape.de> [130111 03:20]:
> On Thu, Jan 10, 2013 at 09:44:20PM +0400, Alexander Polakov wrote:
> > > On Thu, Jan 10, 2013 at 05:37:20PM +0400, Alexander Polakov wrote:
> > > > It seems like some locale/unicode support is missing in OpenBSD ghc.
> > > 
> > > Well, it's poorly implemented and poorly documented (my fault).
> > > 
> > > > OpenBSD/i386, ghc-7.4.2p2, LC_CTYPE=en_US.UTF-8:
> > > 
> > > Could you test wether adding HS_ENCODING=UTF-8 to the environment
> > > helps?
> > 
> > Works this way, thanks!
> 
> Maybe, but what now? Mention it in the manpage or add a readme file
> to the package? As I said, it' poorly documented (in
> lang/ghc/patches/patch-libraries_base_System_IO_hs)

Why not something like this?

 if ((l = getenv("LC_CTYPE")) && (e = strstr(l, "UTF-8")))
      return e;
 return "latin1";

-- 
Alexander Polakov | plhk.ru

Reply via email to