Re: [Rd] Errors on Windows with grep(fixed=TRUE) on UTF-8 strings

2015-07-20 Thread suimong
Thank you Winston for the solution! The only workaround I come up with is to set options(encoding = "UTF-8"), which is generally undesirable. I'm wondering is there any chance this patch will be included in future R version? I have been running into this problem from time to time and the latest R

Re: [Rd] Errors on Windows with grep(fixed=TRUE) on UTF-8 strings

2015-03-03 Thread Winston Chang
After a bit more investigation, I think I've found the cause of the bug, and I have a patch. This bug happens with grep(), when: * Running on Windows. * The search uses fixed=TRUE. * The search pattern is a single byte. * The current locale has a multibyte encoding. === Here's