[Haskell-cafe] How to reverse ghc encoding of command linearguments

Donn Cave donn at avvanta.com
Tue Nov 18 02:30:25 UTC 2014


quoth Ben Franksen <ben.franksen at online.de>
...
> Sorry for the confusion. And thanks for confirming that GHC and the base 
> library do the right thing (if we let them).

Hm, that's my question -- how is this the right thing?

Umlaut u turns up as 0xFC for UTF-8 users;  0xDCFC, for Latin-1 users. 
This is an ordinary hello world type program, can't think of any
unique environmental issues.

- So should we routinely run argv through a high-byte stripper?
- I should learn to appreciate the high 0xDC00 byte, because it
  serves some purpose I wasn't aware of?
- Am I somehow messing myself up, and this doesn't normally happen?
- Or is the base library really not quite right here?

Just curious, mind you!

	Donn


More information about the Haskell-Cafe mailing list