[Haskell-cafe] Help debugging code broken after upgrading debian
to GHC 6.12: "invalid argument"
Daniel Fischer
daniel.is.fischer at web.de
Fri May 14 20:57:22 EDT 2010
On Saturday 15 May 2010 02:53:43, Brandon S. Allbery KF8NH wrote:
> On May 14, 2010, at 20:24 , Brandon Simmons wrote:
> > The other baffling thing is this: if the debugging line 426 is
> > uncommented, then even running:
> >
> > $> runghc Befunge.hs --quiet mycology.b98
> >
> > ...will fail. But all we're doing is a call to `putStr`! Why would
> > that trigger an error?! Maybe there was a bug in my code that was
>
> GHC 6.12's runtime handles input and output encoding, instead of
> simply truncating Chars; my guess is it's locale-related. And sure
> enough, I see several non-ASCII characters in mycology.b98 which are
> likely to do the wrong thing if the runtime doesn't know which
> character set to use.
Yup. Converting mycology.b98 to utf-8 makes it run.
However, why does it run with --quiet on the original file??
More information about the Haskell-Cafe
mailing list