[Rd] Typo in grep.Rd

2018-12-08 Thread Korpela Mikko (MML)
There is a small typo in file 'src/library/base/man/grep.Rd'. Current text: ## collation order is aAbBcCdEe ... Suggested text ("D" instead of "E"): ## collation order is aAbBcCdDe ... Best regards, - Mikko Korpela __ R-devel@r-project.org mailing li

[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