[MLton] Unicode / WideChar

skaller skaller@users.sourceforge.net
Tue, 22 Nov 2005 00:06:26 +1100


On Mon, 2005-11-21 at 13:48 +0100, Florian Weimer wrote:
> >> Also, Char{1,2,4}.{<,toUpper,isAlpha,...} are all locale
> >> *IN*-dependent. 
> >
> > These are Unicode specific functions. By definition
> > they're locale independent.
> 
> Au contraire -- toUpper is locale-depedent.  See the casing exception
> database.

Gak, you're right. In file SpecialCasing-4.1.0.txt there
are half a dozen locale dependent casings. Seems like
the best way to handle this would be for the case mapping
functions to accept an extra parameter representing
the locale?

In Ocaml you could default this argument (can you do
that in MLton?)

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net