From rich at merjis.com Wed Aug 16 08:13:07 2006 From: rich at merjis.com (Richard W.M. Jones) Date: Wed, 16 Aug 2006 16:13:07 +0100 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: References: <20060816145151.GA19014@furbychan.cocan.org> Message-ID: <20060816151307.GG14414@furbychan.cocan.org> On Wed, Aug 16, 2006 at 05:06:30PM +0200, sylvain.le-gall at polytechnique.org wrote: > I am the debian package maintainer of Camomile... Is camomile in debian too > old or too recent ? ( FYI, i think i will update camomile to 0.7.0 next > week or so). Actually it's not Debian, but (cough) Ubuntu, so you'll probably tell me to go away, but anyhow. My Debian system (where we will eventually upload & run this code) is running Debian/stable, and I can't find Camomile there at all, so in fact this may be a moot issue. Here are the Ubuntu versions anyway: Package: libcamomile-ocaml-dev Priority: optional Section: universe/libdevel Installed-Size: 2988 Maintainer: Sylvain Le Gall Architecture: amd64 Source: camomile Version: 0.6.3-3 Depends: ocaml-nox-3.09.1, libcamomile-ocaml-data (= 0.6.3-3) Filename: pool/universe/c/camomile/libcamomile-ocaml-dev_0.6.3-3_amd64.deb Size: 577914 MD5sum: a17177fc5c9a0c4682691bd4b043be6a Description: Unicode library for OCaml Camomile is a comprehensive Unicode library for objective caml language. The library is currently designed to conform Unicode Standard 3.2. . Normalisers (NFD, NFKD, NFC, NFKC) and collator (string comparison) pass the conformance tests defined Unicode Technical Reports. Collator is also tested to Canadian, Thai and Japanese standards with their locales. Bugs: mailto:ubuntu-users at lists.ubuntu.com Origin: Ubuntu Package: libextlib-ocaml-dev Priority: optional Section: universe/libdevel Installed-Size: 1828 Maintainer: Stefano Zacchiroli Architecture: amd64 Source: extlib Version: 1.4-5 Depends: ocaml-nox-3.09.1, ocaml-findlib (>= 1.1) Filename: pool/universe/e/extlib/libextlib-ocaml-dev_1.4-5_amd64.deb Size: 270454 MD5sum: fefaed5bdc926d1c07bf229903fecdc9 Description: extended standard library for OCaml ExtLib is a project aiming at providing a complete - yet small - standard library for the OCaml programming language. . The purpose of this library is to add new functions to OCaml Standard Library modules, to modify some functions in order to get better performances or more safety (tail-recursive) but also to provide new modules which should be useful for the average OCaml programmer. . ExtLib contains modules implementing: enumeration over abstract collection of elements, efficient bit sets, dynamic arrays, references on lists, Unicode characters and UTF-8 encoded strings, additional and improved functions for hashtables, strings, lists and option types. Bugs: mailto:ubuntu-users at lists.ubuntu.com Origin: Ubuntu Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com From rich at annexia.org Wed Aug 16 07:51:51 2006 From: rich at annexia.org (Richard Jones) Date: Wed, 16 Aug 2006 15:51:51 +0100 Subject: [Ocaml-i18n] ExtLib UTF8 not compatible with Camomile Message-ID: <20060816145151.GA19014@furbychan.cocan.org> ExtLib's UTF8 isn't precisely compatible with Camomile's UTF8 (or at least not in the version of Debian I'm using). This makes it impossible to use Camomile with ExtLib, which is a bit of a showstopper for me at the moment. I think we should remove UTF8 from ExtLib to avoid this and future incompatibilities. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com From rich at merjis.com Wed Aug 16 09:48:38 2006 From: rich at merjis.com (Richard W.M. Jones) Date: Wed, 16 Aug 2006 17:48:38 +0100 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: <44E33DAB.3090408@motion-twin.com> References: <20060816145151.GA19014@furbychan.cocan.org> <44E33DAB.3090408@motion-twin.com> Message-ID: <20060816164838.GI14414@furbychan.cocan.org> On Wed, Aug 16, 2006 at 05:45:47PM +0200, Nicolas Cannasse wrote: > > ExtLib's UTF8 isn't precisely compatible with Camomile's UTF8 (or at > > least not in the version of Debian I'm using). This makes it > > impossible to use Camomile with ExtLib, which is a bit of a > > showstopper for me at the moment. > > > > I think we should remove UTF8 from ExtLib to avoid this and future > > incompatibilities. > I'm currently using ExtLib UTF8 in several projects. Me too .. > I'm then against removing it from ExtLib. What are the compatibility > problem ? I think they can be addressed without causing a lot of > worries. The different, btw, is that my Camomile UTF8 contains UTF8.first function, which is not in Extlib UTF8. We can keep updating ExtLib UTF8 to match Camomile UTF8, and accept that it'll be out of synch, or people can just install Camomile when they want UTF8 support. On Debian/Ubuntu, it's just a single command to install Camomile. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com From sylvain.le-gall at polytechnique.org Wed Aug 16 08:06:30 2006 From: sylvain.le-gall at polytechnique.org (sylvain.le-gall at polytechnique.org) Date: Wed, 16 Aug 2006 17:06:30 +0200 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: <20060816145151.GA19014@furbychan.cocan.org> References: <20060816145151.GA19014@furbychan.cocan.org> Message-ID: Richard Jones writes: > > ExtLib's UTF8 isn't precisely compatible with Camomile's UTF8 (or at > least not in the version of Debian I'm using). This makes it > impossible to use Camomile with ExtLib, which is a bit of a > showstopper for me at the moment. > > I think we should remove UTF8 from ExtLib to avoid this and future > incompatibilities. > > Rich. > > -- > Richard Jones, CTO Merjis Ltd. > Merjis - web marketing and technology - http://merjis.com > Team Notepad - intranets and extranets for business - http://team-notepad.com > Hello, I am the debian package maintainer of Camomile... Is camomile in debian too old or too recent ? ( FYI, i think i will update camomile to 0.7.0 next week or so). Kind regard Sylvain Le Gall From peter at jollys.org Wed Aug 16 13:24:21 2006 From: peter at jollys.org (Peter Jolly) Date: Wed, 16 Aug 2006 21:24:21 +0100 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: References: <20060816145151.GA19014@furbychan.cocan.org> <44E33DAB.3090408@motion-twin.com> <20060816164838.GI14414@furbychan.cocan.org> Message-ID: <44E37EF5.6040506@jollys.org> Bardur Arantsson wrote: > Could we simply rename the UTF8 module to something like SimpleUTF8 to > avoid confusion about whether it's supposed to 'emulate' Camomile's UTF8 > module? I don't think there's any need to rename it, with all the consequent breakage of existing code; there's no namespace clash since (by default) Camomile's module is called Camomile.UTF8, not just UTF8, and it _is_ supposed to emulate Camomile's module! :) Note that this incompatibility between ExtLib and Camomile's interfaces has not been caused by a recent change; if I'm reading the CVS logs correctly, Camomile.UTF8.first was added some two years ago, and the Camomile.UTF8 interface has not changed at all since then. Keeping the two modules synchronised (or, more precisely, keeping ExtLib's UTF8 module signature compatible with Camomile.UnicodeString.Type) should not be problematic now that it has been identified as a desirable thing. From rich at annexia.org Fri Aug 18 10:55:41 2006 From: rich at annexia.org (Richard Jones) Date: Fri, 18 Aug 2006 18:55:41 +0100 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: <44E37EF5.6040506@jollys.org> References: <20060816145151.GA19014@furbychan.cocan.org> <44E33DAB.3090408@motion-twin.com> <20060816164838.GI14414@furbychan.cocan.org> <44E37EF5.6040506@jollys.org> Message-ID: <20060818175541.GA13061@furbychan.cocan.org> On Wed, Aug 16, 2006 at 09:24:21PM +0100, Peter Jolly wrote: > I don't think there's any need to rename it, with all the consequent > breakage of existing code; there's no namespace clash since (by default) > Camomile's module is called Camomile.UTF8, not just UTF8, and it _is_ > supposed to emulate Camomile's module! :) Do I need to do something special to get this "packed" version of Camomile? Here is the error I'm experiencing: $ ocaml -I +camomile -I +extlib Objective Caml version 3.09.1 # #load "unix.cma";; # #load "bigarray.cma";; # #load "extLib.cma";; # #load "camomile.cma";; # UTF8.first;; The files /usr/lib/ocaml/3.09.1/extlib/extLib.cma and /usr/lib/ocaml/3.09.1/camomile/uTF8.cmi make inconsistent assumptions over interface UTF8 Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com From rich at annexia.org Fri Aug 18 10:57:23 2006 From: rich at annexia.org (Richard Jones) Date: Fri, 18 Aug 2006 18:57:23 +0100 Subject: [Ocaml-i18n] [Ocaml-lib-devel] ExtLib UTF8 not compatible with Camomile In-Reply-To: References: <20060816145151.GA19014@furbychan.cocan.org> <44E33DAB.3090408@motion-twin.com> <20060816164838.GI14414@furbychan.cocan.org> Message-ID: <20060818175723.GB13061@furbychan.cocan.org> On Thu, Aug 17, 2006 at 07:29:18AM +0900, Yoriyuki Yamagata wrote: > I'm not sure what is your problem. All Camomile modules are packed, > so there should not be a name space issue. (The versions < 0.7.0 > installed suprious cmi like UTF8.cmi. This problem is fixed in 0.7.0) Right, thanks, I've got it now. I was using a somewhat archaic version of Camomile. The version installed by Ubuntu is 0.6.3 (< 0.7.0). Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com