[Rd] Crash/bug when calling match on latin1 strings

Travers Ching tr@ver@c @end|ng |rom gm@||@com
Mon Oct 11 07:05:49 CEST 2021

Here's a brief example:

# A bunch of words in UTF8; replace *'s
words <- readLines("h****://pastebin.c**/raw/MFCQfhpY", encoding = "UTF-8")
words2 <- iconv(words, "utf-8", "latin1")
y <- match(words2, words2)
<The program crashes / segfaults ~90% of the time>

I searched bugzilla but didn't see anything. Apologies if this is already

The bug appears in both R-devel and the release, but doesn't seem to affect
R 4.0.5.

	[[alternative HTML version deleted]]

More information about the R-devel mailing list