Re: [Rd] sorting bug in R-devel?

2021-01-19 Thread Bob Rudis
base::icuSetCollate might be what you need. There are some decent examples in the manual page on it. On Tue, Jan 19, 2021 at 7:30 AM Thierry Onkelinx via R-devel wrote: > > Dear Peter, > > Thanks for the feedback on the locale. Is there a better alternative for > the C locale? One that yields a c

Re: [Rd] sorting bug in R-devel?

2021-01-19 Thread Thierry Onkelinx via R-devel
Dear Peter, Thanks for the feedback on the locale. Is there a better alternative for the C locale? One that yields a consistent and stable sorting independent of the R version and OS. Best regards, Thierry ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flander

Re: [Rd] sorting bug in R-devel?

2021-01-19 Thread Peter Dalgaard
Not sure what happened between 4.0.2 and -devel, but you are using C collation, which assumes 7-bit single-byte characters, to sort multi-byte 8-bit encoded characters, which looks a bit risky. -pd > On 19 Jan 2021, at 10:10 , Thierry Onkelinx via R-devel > wrote: > > Dear all, > > My git2

[Rd] sorting bug in R-devel?

2021-01-19 Thread Thierry Onkelinx via R-devel
Dear all, My git2rdata package relies on a stable sorting. I've noticed that some characters get a different position under R-devel under Windows 10. This is why the unit test of my package only fail in this combination (https://cran.r-project.org/web/checks/check_results_git2rdata.html) Below is