
Hello, I have a program that does a lot of unicode manipulation. I'd like to use hslogger to log various operations. However, since hslogger uses System.IO.putX, the unicode comes out mangled. I hacked the source to use System.IO.UTF8 instead, but it would be nice if that was an option so I don't have to rehack the code whenever there is a new release. Thanks! Sean

Forwarding on to the maintainer, in case he's not on the list.
---------- Forwarded message ----------
From: Sean McLaughlin

If you want to send me a patch that makes it an option (not mandatory), I would be happy to apply it. -- John Antoine Latter wrote:
Forwarding on to the maintainer, in case he's not on the list.
---------- Forwarded message ---------- From: Sean McLaughlin
Date: Tue, Sep 29, 2009 at 1:31 PM Subject: [Haskell-cafe] suggestion for hslogger To: haskell-cafe@haskell.org Hello, I have a program that does a lot of unicode manipulation. I'd like to use hslogger to log various operations. However, since hslogger uses System.IO.putX, the unicode comes out mangled. I hacked the source to use System.IO.UTF8 instead, but it would be nice if that was an option so I don't have to rehack the code whenever there is a new release. Thanks! Sean _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wed, 2009-09-30 at 08:36 -0500, John Goerzen wrote:
If you want to send me a patch that makes it an option (not mandatory), I would be happy to apply it.
When reviewing it do consider the new Unicode IO library. http://ghcmutterings.wordpress.com/2009/09/30/heads-up-what-you-need-to-know... One option is to do nothing and just wait. Duncan

Duncan Coutts wrote:
On Wed, 2009-09-30 at 08:36 -0500, John Goerzen wrote:
If you want to send me a patch that makes it an option (not mandatory), I would be happy to apply it.
When reviewing it do consider the new Unicode IO library.
http://ghcmutterings.wordpress.com/2009/09/30/heads-up-what-you-need-to-know...
One option is to do nothing and just wait.
That is probably the best. -- John
Duncan

On Tue, 2009-09-29 at 14:31 -0400, Sean McLaughlin wrote:
Hello,
I have a program that does a lot of unicode manipulation. I'd like to use hslogger to log various operations. However, since hslogger uses System.IO.putX, the unicode comes out mangled. I hacked the source to use System.IO.UTF8 instead, but it would be nice if that was an option so I don't have to rehack the code whenever there is a new release.
Note that this will "Just Work"tm in ghc-6.12. By default the System.IO functions will use the locale encoding and convert to/from the Unicode String type. Duncan
participants (4)
-
Antoine Latter
-
Duncan Coutts
-
John Goerzen
-
Sean McLaughlin