[GHC] #5512: UTF-16//ROUNDTRIP encoding behaves weirdly

GHC cvs-ghc at haskell.org
Thu Nov 10 10:35:39 CET 2011


#5512: UTF-16//ROUNDTRIP encoding behaves weirdly
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |        Owner:                             
        Type:  bug               |       Status:  new                        
    Priority:  normal            |    Milestone:  7.4.1                      
   Component:  libraries/base    |      Version:  7.2.1                      
    Keywords:                    |     Testcase:                             
   Blockedby:                    |   Difficulty:                             
          Os:  Unknown/Multiple  |     Blocking:                             
Architecture:  Unknown/Multiple  |      Failure:  Incorrect result at runtime
---------------------------------+------------------------------------------

Comment(by batterseapower):

 You are seeing exactly the expected output. My recent change to have
 mkTextEncoding try our Haskell TextEncodings before it falls back to iconv
 may have made this better.

 In practice, we don't really care whether UTF-16//ROUNDTRIP works because
 we only use //ROUNDTRIP for the fileSystemEncoding (a modified
 localeEncoding), UTF-16 is not an ASCII superset, and IIRC the Posix
 standard requires the locale encoding to be an ASCII superset.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5512#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list