#4137: real/veritas/DerivedRules.hs features invalid multibyte/wide char
---------------------------------+------------------------------------------
    Reporter:  TristanAllwood    |       Owner:                       
        Type:  bug               |      Status:  new                  
    Priority:  normal            |   Component:  NoFib benchmark suite
     Version:  6.12.3            |    Keywords:                       
          Os:  Unknown/Multiple  |    Testcase:                       
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown         
---------------------------------+------------------------------------------
 Around line 113 of {{{real/veritas/DerivedRules.hs}}} features the
 following comment:

 {{{
 {-
 
(******************************************************************************)
 (*                 » ù   » æ
 *)
 (*                 --------- conj
 *)
 (*                  » ù ³ æ
 *)
 
(******************************************************************************)
 -}
 }}}

 This causes readFile (and thus hpc) to choke:

 {{{
 >ghci-6.12.1
 GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 Prelude> readFile "../nofib-clean/real/veritas/DerivedRules.hs"
 "module DerivedRules where\n\nimport Type_defs\n\nimport
 ...elided...
 iL\n\n\t  iLL = find 0 [] tm\n\n\t  tm' = foldl lift_fn  tm
 
iLL\n\n\n{-\n(******************************************************************************)\n(*
 *** Exception: ../nofib-clean/real/veritas/DerivedRules.hs: hGetContents:
 invalid argument (Invalid or incomplete multibyte or wide character)
 Prelude>
 Leaving GHCi.
 }}}

 This doesn't affect 6.10.1 so I guess it's at the interaction of the new
 IO/unicode encoding work that went into 6.12.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4137>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to