[
https://issues.apache.org/jira/browse/ARROW-17332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17646700#comment-17646700
]
Lucas Mation commented on ARROW-17332:
--------------------------------------
[~paleolimbot] , yes this works
```
library(arrow, warn.conflicts = FALSE)
Warning message:
package ‘arrow’ was built under R version 4.2.2
> f <- tempfile(fileext = "Público")
> write.csv(mtcars, f, row.names = FALSE)
> # this should fail based on the issue report
> mtcars2 <- read_csv_arrow(f)
> # if the PR interpreted the problem correctly, this should work
> # (circumvent any Arrow filename handling)
> fs <- LocalFileSystem$create()
> marked_path <- enc2utf8(normalizePath(f, winslash = "/", mustWork = FALSE))
> file <- arrow:::fs___FileSystem__OpenInputFile(fs, marked_path)
> mtcars2 <- read_csv_arrow(file)
> nrow(mtcars2)
[1] 32
```
> [R] error parsing folder path with accent ('c:/Público') in read_csv_arrow
> --------------------------------------------------------------------------
>
> Key: ARROW-17332
> URL: https://issues.apache.org/jira/browse/ARROW-17332
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Lucas Mation
> Priority: Major
> Labels: pull-request-available
> Fix For: 11.0.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> I am a user trying the R arrow package on a windows machine.
> To reproduce create a folder name containing a character with Latin accents
> ```
> libary(arrow)
> p <- 'c:/Público'
> b <- read_csv_arrow(p)
> Error: IOError: Failed to open local file 'c:/Público'. Detail: [Windows
> error 5] Access is denied.
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)