Re: [Rd] encoding argument of source() in 3.5.0

2018-06-07 Thread Tomas Kalibera
Thanks, the fix is now in R-patched and will be included in 3.5.1. Tomas On 06/06/2018 09:54 PM, Stephen Berman wrote: On Tue, 5 Jun 2018 16:03:54 +0200 Tomas Kalibera wrote: Thanks for the report, fixed in R-devel (74848). Best Tomas FTR, I confirm that the problem I reported is now

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-06 Thread Stephen Berman
On Tue, 5 Jun 2018 16:03:54 +0200 Tomas Kalibera wrote: > Thanks for the report, fixed in R-devel (74848). > > Best > Tomas FTR, I confirm that the problem I reported is now fixed under both GNU/Linux and MS-Windows. Thanks! Steve Berman __

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-05 Thread Tomas Kalibera
"function()" "{" "print(\"Non-ascii:" "äöüß\")" # [7] "}" url_libcurl_en <- url(urlR, encoding = "UTF-8", method = 'libcurl') scan(url_libcurl_en, "") # Read 0 items # character(0) Mic

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-04 Thread NELSON, Michael
"print(\"Non-ascii:" "äöüß\")" # [7] "}" url_libcurl_en <- url(urlR, encoding = "UTF-8", method = 'libcurl') scan(url_libcurl_en, "") # Read 0 items # character(0) Michael _

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-04 Thread Stephen Berman
On Mon, 4 Jun 2018 10:44:11 +0200 Martin Maechler wrote: >> peter dalgaard >> on Sun, 3 Jun 2018 23:51:24 +0200 writes: > > > Looks like this actually comes from readLines(), nothing > > to do with source() as such: In current R-devel (still): > > >> f <-

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-04 Thread peter dalgaard
It's not Windows-specific, though. My example was on a Mac... I hope we can sort this out before 3.5.1. -pd > On 4 Jun 2018, at 10:44 , Martin Maechler wrote: > > So it seems as if the bug is in the file() [or url()] C code .. > But then we also have to consider Windows .. where I think most

Re: [Rd] encoding argument of source() in 3.5.0

2018-06-04 Thread Martin Maechler
> peter dalgaard > on Sun, 3 Jun 2018 23:51:24 +0200 writes: > Looks like this actually comes from readLines(), nothing > to do with source() as such: In current R-devel (still): >> f <- file("http://home.versanet.de/~s-berman/source2.R;, encoding="UTF-8") >>

[Rd] encoding argument of source() in 3.5.0

2018-06-02 Thread Stephen Berman
In R 3.5.0 using the `encoding' argument of source() prevents loading files from the internet; without the `encoding' argument files can be loaded from the internet, but if they contain non-ascii characters, these are not correctly displayed under MS-Windows (but they are correctly displayed under