Re: [Rd] Regression in match() in R 3.3.0 when matching strings with different character encodings

2016-05-09 Thread Martin Maechler
> Peter Haverty > on Mon, 9 May 2016 09:47:48 -0700 writes: > Dear Kirill, > You are correct, that is a new bug introduced in PR16491. The appropriate > fix and regression tests have been added via PR16885, which has been merged > into trunk. I believe that means the

Re: [Rd] Regression in match() in R 3.3.0 when matching strings with different character encodings

2016-05-09 Thread Peter Haverty
Dear Kirill, You are correct, that is a new bug introduced in PR16491. The appropriate fix and regression tests have been added via PR16885, which has been merged into trunk. I believe that means the fix will be released with R 3.3.1. I checked your example and the second "match" now properly ret

[Rd] Regression in match() in R 3.3.0 when matching strings with different character encodings

2016-05-09 Thread Kirill Müller
Hi I think the following behavior is a regression from R 3.2.5: > match(iconv( c("\u00f8", "A"), from = "UTF8", to = "latin1" ), "\u00f8") [1] 1 NA > match(iconv( c("\u00f8"), from = "UTF8", to = "latin1" ), "\u00f8") [1] NA > match(iconv( c("\u00f8"), from = "UTF8", to = "latin1" ), "