On Tue, Aug 25, 2009 at 5:10 AM, Simon Marlow<
marlowsd@gmail.com> wrote:
> On 23/08/2009 17:22, Judah Jacobson wrote:
>> I proposal that we augment ghc-6.12.1's support for Unicode Handles
>> by adding the following functions to System.IO:
>>
>> hSetOnEncodingError :: Handle -> OnEncodingError -> IO ()
>> hGetOnEncodingError :: Handle -> IO OnEncodingError
>>
>> as well as the enumeration `OnEncodingError` with three constructors:
>>
>> - `ThrowEncodingError`: Throw an exception at the first encoding or
>> decoding
>> error.
>> - `SkipEncodingError`: Skip all invalid bytes or characters.
>> - `TranslitEncodingError`: Replace undecodable bytes with u+FFFD, and
>> unencodable characters with '?'.