On Sun, Nov 16, 2014 at 8:42 AM, Ben Franksen <ben.franksen@online.de> wrote:
How do I break this cycle?

Perhaps it is simpler to write our own getArgs/getEnv functions and directly
convert the data we get from the system to a proper (Unicode) String?

Ideally there should be a System.Posix.Environment.getArgs that just returns the raw POSIX string (possibly as a ByteString); as with most of POSIX, there is no defined encoding for this, it's octets. If you insist on imposing an encoding on it, you could start from that.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net