Hello Roman,

Sunday, June 27, 2010, 11:37:24 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.
> "6.3  CString
> 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."

1. it doesn't work on practice. ghc provides simple 8-bit conversion
and i think a lot of code relies on this behavior

2. when you mount external/network volume, it doesn't necessarily has
the same encoding as your current locale



-- 
Best regards,
 Bulat                            mailto:bulat.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to