Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-ascii file name in native encoding fails on windows #262

Closed
gaborcsardi opened this issue Aug 6, 2020 · 1 comment
Closed

Non-ascii file name in native encoding fails on windows #262

gaborcsardi opened this issue Aug 6, 2020 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@gaborcsardi
Copy link
Member

gaborcsardi commented Aug 6, 2020

Because processx assumes UTF-8 encoding. This is R 4.0.2 on Windows 10.

exe <- enc2native("./\u00fa\u00e1\u00f6.exe")
file.copy(get_tool("px"), exe)
out <- run(exe, c("return", 10), error_on_status = FALSE)
#>  Error in rethrow_call(c_processx_exec, command, c(command, args), stdin,  : 
#>   Command './úáö.exe' not found @win/processx.c:994 (processx_exec)
#> Type .Last.error.trace to see where the error occured 
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Aug 6, 2020
@gaborcsardi
Copy link
Member Author

Closed by #265.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant