Ticket #19 (closed enhancement: fixed)
Add Unicode support
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.2 |
| Version: | 0.1 | Keywords: | |
| Cc: |
Description
Support non-ASCII terminal input/output (such as UTF-8). This should not require any major changes to the existing architecture.
On Windows, we can use the wide-character versions of the input functions, like ReadConsoleInputW; and use WriteConsoleW for console output instead of putStr.
On POSIX, we'll probably use either the utf8-string or iconv libraries. That is, either always default to UTF8, or use iconv plus the current locale (from the nl_langinfo POSIX function, I suppose). The former is easier to implement, but the latter will be more portable.
Note also that in ghc 6.10, this all may be provided automatically; see http://www.haskell.org/pipermail/cvs-ghc/2008-June/043003.html
Finally, the functions in System.Directory are not (yet) Unicode-aware; the filename completion functions will need to be updated too.
