Re: [Rd] Possible encoding bug in sub()

2018-12-10 Thread Korpela Mikko (MML)
-project.org Subject: Re: [Rd] Possible encoding bug in sub() >>>>> Korpela Mikko (MML) >>>>> on Sat, 8 Dec 2018 18:42:30 + writes: > I noticed that sub() gives unexpected results for the following test > case. In the test case, the (initial) input

Re: [Rd] Possible encoding bug in sub()

2018-12-10 Thread Martin Maechler
> Korpela Mikko (MML) > on Sat, 8 Dec 2018 18:42:30 + writes: > I noticed that sub() gives unexpected results for the following test > case. In the test case, the (initial) input is ASCII but the > replacements are UTF-8. The first sub() produces an UTF-8 result with

[Rd] Possible encoding bug in sub()

2018-12-08 Thread Korpela Mikko (MML)
I noticed that sub() gives unexpected results for the following test case. In the test case, the (initial) input is ASCII but the replacements are UTF-8. The first sub() produces an UTF-8 result with an "unknown" Encoding. This makes the result garbled in Windows (no UTF-8 locale there). The second