[Haskell-cafe] Core packages and locale support
beroal at ukr.net
Sun Jun 27 03:37:24 EDT 2010
On 27.06.10 10:18, Bulat Ziganshin wrote:
> Hello Roman,
> Sunday, June 27, 2010, 11:11:59 AM, you wrote:
>> No! The target encoding is the current locale. It is a no-brainer to
> not necessarily. current locale, encoding of current terminal and
> encoding of every filesystem mounted are all different things
And we should stick to the current locale. Problem solved.
The module CString provides routines marshalling Haskell into C strings
and vice versa. The marshalling converts each Haskell character,
representing a Unicode code point, to one or more bytes in a manner
that, by default, is determined by the *current locale*."
"The Haskell 98 Foreign Function Interface."
More information about the Haskell-Cafe