cvs commit: fptools/ghc/compiler/ghci ByteCodeGen.lhs
Simon Marlow
simonmar@glass.cse.ogi.edu
Thu, 31 Jan 2002 05:42:21 -0800
simonmar 2002/01/31 05:42:21 PST
Modified files:
ghc/compiler/ghci ByteCodeGen.lhs
Log:
Fix a classic bug: copying a Haskell string with one of the C string
functions (in this case strncpy()) is wrong when the string contains
'\0' characters.
The symptom in this case is that Happy parsers created with -ag don't
work in GHCi, because the state tables are encoded as strings
containing lots of '\0' elements.
Revision Changes Path
1.68 +2 -2 fptools/ghc/compiler/ghci/ByteCodeGen.lhs