Ross Paterson ross at
Thu Mar 13 20:21:38 EDT 2008

On Fri, Mar 14, 2008 at 12:05:18AM +0000, Ian Lynagh wrote:
> On Thu, Mar 13, 2008 at 10:52:24PM +0000, Ross Paterson wrote:
> > On Thu, Mar 13, 2008 at 03:31:37PM -0700, Simon Marlow wrote:
> > > Setting the locale *might* have side-effects, for instance we noticed  
> > > before that heap profiling broke in some locales because the RTS code to  
> > > generate the .hp file was using fprintf to print numbers, and the number  
> > > format depends on the locale.
> > 
> > You could avoid this by setting LC_CTYPE instead of LC_ALL.
> It's probably best if we work correctly even if the user needs to set
> LC_CTYPE themselves for some reason, though.

I think you mean LC_NUMERIC.

Setting LC_CTYPE won't affect printing numbers or collation, but it will
enable character encoding, which is what the original poster was after.

More information about the Glasgow-haskell-users mailing list