WinHugs and Unicode

Neil Mitchell ndmitchell at gmail.com
Fri Sep 16 11:58:03 EDT 2005


Hi,

In Windows both the WinHugs "fake" console and the standard console
are already unicode compliant on NT/2K/XP and have wrapper functions
such as wprintf which are unicode and tprintf which is either ASCII or
Unicode depending on some #define's.

How does Hugs deal with unicode, i.e. are the filenames etc. stored by
the program as unicode, or is it just the Haskell elements that are
Unicode.

Attatched is a patch which includes the unicode compliant header along
with commented out definitions for unicode in WinHugs. If you
uncomment those definitions it will not work, but then I can work on
converting files one by one and when they are all done hopefully a
Unicode enabled Hugs on windows will result :)

This process should not alter the non unicode code paths at all, 
beause of various defines in Windows.

Thanks

Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode.patch
Type: application/octet-stream
Size: 550 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/cvs-hugs/attachments/20050916/04e98391/unicode.obj


More information about the Cvs-hugs mailing list