[GHC] #2903: Incorrect length for CWStringLen on Win32

GHC trac at galois.com
Tue Dec 30 13:27:14 EST 2008


#2903: Incorrect length for CWStringLen on Win32
---------------------+------------------------------------------------------
Reporter:  asklinge  |          Owner:                  
    Type:  bug       |         Status:  new             
Priority:  normal    |      Component:  libraries/base  
 Version:  6.10.1    |       Severity:  normal          
Keywords:            |       Testcase:                  
      Os:  Windows   |   Architecture:  Unknown/Multiple
---------------------+------------------------------------------------------
 The functions newCWStringLen and withCWStringLen return a CWStringLen with
 incorrect length on Win32 platform.  The length returned is the length of
 the original Haskell String, but it should be the length of the UTF-16
 encoded string (which may be longer if the original string contained any
 code points > 0xFFFF).

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


More information about the Glasgow-haskell-bugs mailing list