Proposal #3337: expose Unicode and newline translation from
System.IO
Judah Jacobson
judah.jacobson at gmail.com
Sun Jul 5 14:48:29 EDT 2009
On Fri, Jul 3, 2009 at 1:23 AM, Simon Marlow<marlowsd at gmail.com> wrote:
> On 02/07/2009 23:04, Judah Jacobson wrote:
>>
>> On Tue, Jun 30, 2009 at 5:03 AM, Simon Marlow<marlowsd at gmail.com> wrote:
>>>
>>> Ticket:
>>>
>>> http://hackage.haskell.org/trac/ghc/ticket/3337
>>>
>>> For the proposed new additions, see:
>>>
>>> * http://www.haskell.org/~simonmar/base/System-IO.html#23
>>> System.IO (Unicode encoding/decoding)
>>>
>>> * http://www.haskell.org/~simonmar/base/System-IO.html#25
>>> System.IO (Newline conversion)
>>>
>>> Discussion period: 2 weeks (14 July).
>>
>>
>> 3) How hard would it be to get Windows code page support working? I'd
>> like that a lot since it would further simplify the code in Haskeline.
>> I can help out with the implementation if it's just a question of
>> time.
>
> Ok, so I did look into this. The problem is that the MultiByteToWideChar
> API just isn't good enough.
> [...]
> BTW, Python uses its own automatically-generated codecs for Windows
> codepages. Maybe we should do that too.
That approach seems best; and it would be a nice small step towards a
pure Haskell replacement for libiconv. I've started working on this.
-Judah
More information about the Libraries
mailing list