* Matthias Kilian <k...@outback.escape.de> [130112 01:00]: > 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).
Well, I agree that it looks ugly.. Readme is probably the best way to handle this (and this thread seems to be high on google for "ghc unicode openbsd"). -- Alexander Polakov | plhk.ru