#5153: System.Environment.getArgs does not UTF-8 decode arguments even in UTF-8
locale
---------------------------------+------------------------------------------
    Reporter:  Athas             |       Owner:                                 
             
        Type:  bug               |      Status:  new                            
             
    Priority:  normal            |   Component:  libraries/base                 
             
     Version:  7.0.3             |    Keywords:  utf-8, utf8, unicode, getArgs, 
options, argv
    Testcase:                    |   Blockedby:                                 
             
          Os:  Unknown/Multiple  |    Blocking:                                 
             
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown                   
             
---------------------------------+------------------------------------------
 getArgs is implemented as simply dereferencing argv and returning a list
 of the octets passed as arguments, resulting in unexpected results for
 multibyte characters.  I think it would be more natural if getArgs
 performed locale-relevant decoding, and a more low-level function (perhaps
 returning ByteStrings) was available for when you really want the raw
 arguments.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5153>
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