[Ocaml-i18n] Re: [Caml-list] Camomile-0.5.0

skaller skaller at users.sourceforge.net
Thu Apr 15 10:22:00 PDT 2004


On Fri, 2004-04-16 at 02:25, Yamagata Yoriyuki wrote:

> Camomile is a comprehensive Unicode library for OCaml.  Changes from
> the previous version are,
> 
> * Internationalized Pervasives, Char, String, Buffer modules

Yea! 

> * Search strings by matching collation
> * Binding to ISO C Locale.

I have a question here. The C locale concept does need
a binding, unfortunately. However it is well known
this is a seriously deficient hack, and the use
of C locales should be strongly discouraged.

C++ uses an imperfect but much better concept: locale's
are independent objects which can be passed as arguments
to locale sensitive operations.

So there is an ISO Standard for handling locale information
properly, albiet a C++ one.

In the C world a number of different strategies are used
to handle this problem. Microsoft is the most advanced,
having several different API available for i18n support.
Unix solutions also exist .. more than one :D

I an wondering what your ideas are for the way forward
for Ocaml. 

-- 
John Skaller, mailto:skaller at users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net






More information about the Ocaml-i18n mailing list