search for: icugetcol

Displaying 2 results from an estimated 2 matches for "icugetcol".

2015 Aug 13
2
Bug in rank with utf8?
Yes, collation is a strange thing, and? Collation order will depend on locale settings, and there are quite a few cases where the collation order of two items is not defined. To add to the confusion, on OSX Mavericks, I see > x <- "\u0663" > y <- 3 > > x == y [1] FALSE > rank(c(x, y)) [1] 2 1 > x [1] "?" > x == y [1] FALSE > x > y [1] TRUE
2015 Aug 14
0
Bug in rank with utf8?
On 13/08/2015 15:19, peter dalgaard wrote: > Yes, collation is a strange thing, and? And remember that on some platforms (including yours) ICU is used, so LC_COLLATE is not particularly relevant (unless it is 'C'). See ?Comparisons and ?icuGetCollate. E.g. on my Yosemite system in en_US.UTF-8 > rank(c(x, y)) [1] 1.5 1.5 > icuGetCollate() [1] "root" > icuSetCollate(locale="ASCII") > rank(c(x, y)) [1] 2 1 whereas on Fedora 21 > rank(c(x, y)) [1] 2 1 > icuGetCollate() [1] "root" > >...