#2097: bug in regEnumKeys (System.Win32.Registry)
-------------------------------+--------------------------------------------
Reporter: MagnusTherning | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone: 6.8.3
Component: libraries (other) | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Windows |
-------------------------------+--------------------------------------------
Comment (by MagnusTherning):
Replying to [comment:7 igloo]:
>
> We are using wide characters explicitly (`RegEnumKeyW`); the question is
how large a buffer to pass as the third argument.
All right, maybe I should have been a bit more clear :-) AFAIK the use of
`TCHAR` is something that allows the programmer to switch between Unicode
(in Windows parlance) and ASCII at compile time. If the "W functions" are
used explicitly I think it'd be better to also use `wchar_t` explicitly
rather than hide them behind `TCHAR`s.
According to Wikipedia "unicode" means UTF-16 on Windows, so allowing up
to 4 bytes per character will be enough, though likely a bit wasteful.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2097#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs