R-4.3 version list.files function could not work
correctly in chinese
Message-ID:<21e91609-85b2-103b-8e23-12eadff62...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
On 8/16/23 13:22, Ivan Krylov wrote:
On Wed, 16 Aug 2023 09:42:09 +0200
com/q/77527167/12685768
Mikael
On 2023-08-17 6:00 am, r-devel-requ...@r-project.org wrote:
Message: 5
Date: Wed, 16 Aug 2023 16:00:13 +0200
From: Tomas Kalibera
To: Ivan Krylov
Cc:"r-devel@r-project.org"
Subject: Re: [Rd] R-4.3 version list.files function could not work
corre
On 8/16/23 13:22, Ivan Krylov wrote:
On Wed, 16 Aug 2023 09:42:09 +0200
Tomas Kalibera wrote:
Fixed in R-devel (84960). Please let me know if you see any problem
with the fix.
Thank you for implementing the fix! I gave 叶月光 the link to the
GitHub Action build of the r84960 installer.
Thanks
--
> *From:* R-devel on behalf of Tomas
> Kalibera
> *Sent:* Wednesday, August 16, 2023 15:42
> *To:* Ivan Krylov
> *Cc:* r-devel@r-project.org
> *Subject:* Re: [Rd] R-4.3 version list.files function could not work
> correctly in chinese
>
> On
On Wed, 16 Aug 2023 09:42:09 +0200
Tomas Kalibera wrote:
> Fixed in R-devel (84960). Please let me know if you see any problem
> with the fix.
Thank you for implementing the fix! I gave 叶月光 the link to the
GitHub Action build of the r84960 installer.
I'm worried that 叶月光 was seeing FindNextFile
eady done it)
Regards,
yu
From: R-devel on behalf of Tomas Kalibera
Sent: Wednesday, August 16, 2023 15:42
To: Ivan Krylov
Cc: r-devel@r-project.org
Subject: Re: [Rd] R-4.3 version list.files function could not work correctly in
chinese
On 8/15/23 16:00, Tomas Kalibera wrote:
>
> On
On 8/15/23 16:00, Tomas Kalibera wrote:
On 8/15/23 09:04, Ivan Krylov wrote:
В Tue, 15 Aug 2023 08:38:11 +0200
Tomas Kalibera пишет:
As this was reported to be regression in 4.3, it is entirely possible
this change came with a regression (though a bit surprising we didn't
catch it earlier
On 8/15/23 09:04, Ivan Krylov wrote:
В Tue, 15 Aug 2023 08:38:11 +0200
Tomas Kalibera пишет:
As this was reported to be regression in 4.3, it is entirely possible
this change came with a regression (though a bit surprising we didn't
catch it earlier by testing), so it would be a great help i
В Tue, 15 Aug 2023 08:38:11 +0200
Tomas Kalibera пишет:
> As this was reported to be regression in 4.3, it is entirely possible
> this change came with a regression (though a bit surprising we didn't
> catch it earlier by testing), so it would be a great help if I could
> have the example and
On 8/13/23 13:16, Ivan Krylov wrote:
Found it! Looks like a buffer length problem. This isn't limited to
Chinese, just more likely to happen when a character takes three bytes
to represent in UTF-8. (Any filename containing characters which take
more than one byte to represent in UTF-8 may fail
Found it! Looks like a buffer length problem. This isn't limited to
Chinese, just more likely to happen when a character takes three bytes
to represent in UTF-8. (Any filename containing characters which take
more than one byte to represent in UTF-8 may fail.)
If a directory contains a file with a
Could you test it on RGui and Rterm first, see it work or not. then try RStudio?
From: R-devel on behalf of 叶月光
Sent: Friday, August 11, 2023 11:41
To: r-devel@r-project.org
Subject: [Rd] R-4.3 version list.files function could not work correctly in
chinese
-devel on behalf of Yihui Xie
Sent: Saturday, August 12, 2023 12:40
To: Ivan Krylov
Cc: r-devel@r-project.org ; 叶月光
Subject: Re: [Rd] R-4.3 version list.files function could not work correctly in
chinese
Yes, I participated in the discussion. Basically dir() failed to list all
files since R
Dear 叶月光,
I believe you that there's a problem with list.files() and file names
in Chinese. There is no need for additional proof. Unfortunately, it's
impossible to fix the problem unless its source is found:
https://www.chiark.greenend.org.uk/~sgtatham/bugs-cn.html
Can you give me more examples
Dear Yihui,
Thanks a lot for your help!
Unfortunately, I was not able to reproduce this. I've tried creating
files with Chinese characters in their names and populating them
with valid UTF-8 and valid non-UTF-8 text, but R seems to be able to
list them all in my case.
I'm running a US English ev
Yes, I participated in the discussion. Basically dir() failed to list all
files since R 4.3.0 when filenames start with Chinese characters. I don't
have a Windows machine to test it, but this might be a minimal reproducible
example:
file.create("常用代码.R")
dir()
The OP said dir() would return "常用代码
Dear 叶月光,
Thank you for your message, but please follow the posting guide in your
future messages: https://www.r-project.org/posting-guide.html
https://www.r-project.org/bugs.html
I understand from your link that list.files() ends up skipping some
Chinese filenames in R-4.3.1 (but not R-4.2.2) on
17 matches
Mail list logo