Re: [Rd] sort yields different results on OS X (PR#14163)

2009-12-23 Thread Jeffrey M Sullivan
On Dec 22, 2009, at 4:18 AM, Prof Brian Ripley wrote: As the help says The sort order for character vectors will depend on the collating sequence of the locale in use: see ‘Comparison’. and that ref says Collation of non-letters (spaces, punctuation signs, hyphens, fractions a

Re: [Rd] sort yields different results on OS X (PR#14163)

2009-12-22 Thread Prof Brian Ripley
On Tue, 22 Dec 2009, Peter Dalgaard wrote: Prof Brian Ripley wrote: That different OSes use the same name for a locale does not make them the same locale. Note that R can be compiled to use ICU, which provides a well-considered collation suite. R on Mac OS X uses ICU, as does a Linux bui

Re: [Rd] sort yields different results on OS X (PR#14163)

2009-12-22 Thread Peter Dalgaard
Prof Brian Ripley wrote: That different OSes use the same name for a locale does not make them the same locale. Note that R can be compiled to use ICU, which provides a well-considered collation suite. R on Mac OS X uses ICU, as does a Linux build if it is available -- so I would say that

Re: [Rd] sort yields different results on OS X (PR#14163)

2009-12-22 Thread Prof Brian Ripley
As the help says The sort order for character vectors will depend on the collating sequence of the locale in use: see ‘Comparison’. and that ref says Collation of non-letters (spaces, punctuation signs, hyphens, fractions and so on) is even more problematic. That diffe

[Rd] sort yields different results on OS X (PR#14163)

2009-12-22 Thread jeffreys
Full_Name: Jeffrey Sullivan Version: 2.10 OS: Mac Submission from: (NULL) (130.154.0.250) Sort produces different results when sorting strings with non-alphanumeric characters, depending on the operating system: RHEL 5.2, R 2.10.0 - > v <- c("1","<0",">3","2") > Sys.setlocale("LC_COL