Re: [Rd] Segfault when parsing UTF-8 text with srcrefs

2024-05-31 Thread Tomas Kalibera
On 5/28/24 20:41, Tomas Kalibera wrote: On 5/28/24 19:35, Hadley Wickham wrote: Hi all, When I run the following code, R segfaults: text <- "×" srcfile <- srcfilecopy("test.r", text) parse(textConnection(text), srcfile = srcfile) It doesn't segfault if text is ASCII, or it's not wrapped

Re: [Rd] Segfault when parsing UTF-8 text with srcrefs

2024-05-28 Thread Tomas Kalibera
On 5/28/24 19:35, Hadley Wickham wrote: Hi all, When I run the following code, R segfaults: text <- "×" srcfile <- srcfilecopy("test.r", text) parse(textConnection(text), srcfile = srcfile) It doesn't segfault if text is ASCII, or it's not wrapped in textConnection, or srcfile isn't set.

Re: [Rd] Segfault when parsing UTF-8 text with srcrefs

2024-05-28 Thread Duncan Murdoch
On 2024-05-28 1:35 p.m., Hadley Wickham wrote: Hi all, When I run the following code, R segfaults: text <- "×" srcfile <- srcfilecopy("test.r", text) parse(textConnection(text), srcfile = srcfile) It doesn't segfault if text is ASCII, or it's not wrapped in textConnection, or srcfile isn't

[Rd] Segfault when parsing UTF-8 text with srcrefs

2024-05-28 Thread Hadley Wickham
Hi all, When I run the following code, R segfaults: text <- "×" srcfile <- srcfilecopy("test.r", text) parse(textConnection(text), srcfile = srcfile) It doesn't segfault if text is ASCII, or it's not wrapped in textConnection, or srcfile isn't set. Hadley -- http://hadley.nz