Hi,

On Fri, Jan 11, 2013 at 07:31:22AM +0400, Alexander Polakov wrote:
> > 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";

Because it's a little bit ugly, and it's incomplete. There are some
more environment variables involved (LC_ALL, even LANG, iirc). I
really don't want to hack something that simulates proper handling
of locales (that was the reason I used HS_ENCODING in the first
place).

Ciao,
        Kili

Reply via email to