Re: [Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-10-05 Thread Prof Brian Ripley
This was a missing PROTECT() in do_order. But I'll echo what Simon Urbanek said: don't do that but rather use the documented ways to re-encode the file as you read it. (Latin-1 used to be needed for collation on Mac OS X as C-level collation in UTF-8 was completely broken -- but we have

[Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-09-30 Thread Stefan Evert
Hi everyone! I think I stumbled over a bug in the latest R 2.9.2 patched for OS X: R version 2.9.2 Patched (2009-09-24 r49861) i386-apple-darwin9.8.0 When I try to sort latin1-encoded character vectors, R sometimes crashes with a segmentation fault. I'm running OS X 10.5.8 and have

Re: [Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-09-30 Thread Simon Urbanek
Stefan, On Sep 30, 2009, at 5:11 , Stefan Evert wrote: Hi everyone! I think I stumbled over a bug in the latest R 2.9.2 patched for OS X: R version 2.9.2 Patched (2009-09-24 r49861) i386-apple-darwin9.8.0 When I try to sort latin1-encoded character vectors, R sometimes crashes with a