[project @ 2003-08-20 10:22:44 by simonmar]
authorsimonmar <unknown>
Wed, 20 Aug 2003 10:22:44 +0000 (10:22 +0000)
committersimonmar <unknown>
Wed, 20 Aug 2003 10:22:44 +0000 (10:22 +0000)
commit0c0dbd891205d93423c93d9de2cd0d4935c8c34c
tree14daffc67218acf9d66fc8ac7a63ead45716d762
parent14c3d7f368a6ec5e760b2fd57218171eeaf53a29
[project @ 2003-08-20 10:22:44 by simonmar]
Use the wide-char classifications from the C library if available.
This gives us Unicode-aware isLower, isUpper, isAlpha etc.

On Unix, you have to set your locale to something.  This is usually
done by setting the environment variable LANG, eg.

  export LANG=en

This stuff *should* also work on Windows, except that Windows uses a
16-bit wchar_t so will get it wrong for characters > '\xffff'.  However,
I figured it was better to use the system-supplied functionality
rather than trying to implement this stuff ourselves.
GHC/Unicode.hi-boot [new file with mode: 0644]
GHC/Unicode.hsc [new file with mode: 0644]