[Rd] internal string comparison (Scollate)

Dirk Eddelbuettel edd at debian.org
Thu Mar 27 19:08:25 CET 2014

On 26 March 2014 at 19:09, Romain François wrote:
| That’s one part of the problem. Indeed I’d rather use something rather than
| copy and paste it and run the risk of being outdated. The answer to that is

We all would. But "they" won't let us by refusing to create more API access points.

| testing though. I can develop a test suite that can let me know I’m out of


| date and I need to copy and paste some new code, etc … Done that before, this
| is tedious, but so what. 
| The other part of the problem (the real part of the problem actually) is that,
| at least when R is built with ICU support, Scollate will depend on a the
| collator pointer in util.c
| https://github.com/wch/r-source/blob/trunk/src/main/util.c#L1777
| And this can be controlled by the base::icuSetCollate function. Of course the
| collator pointer is not public.

So the next (and even less pleasant) answer is to build a new package which
links to, (or worse yet, embeds) libicu.  

As you want ICU behaviour, you will need ICU code.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the R-devel mailing list