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

Problems with UTF-8 on Windows #482

Open
huguesmp opened this issue Jun 26, 2024 · 2 comments
Open

Problems with UTF-8 on Windows #482

huguesmp opened this issue Jun 26, 2024 · 2 comments

Comments

@huguesmp
Copy link

huguesmp commented Jun 26, 2024

Versions 0.6.7 and 0.6.8+ introduced problems for me on Windows. Since it is on my work machine, I cannot post screenshots unfortunately.

When I run for example devtools::check() on 0.6.7, I get many lines like this:

Warning in Sys.setlocale("LC_CTYPE", ctype) :
  using locale code page other than 1252 may cause problems

But the operation succeeds.

With radian 0.6.8 and above (I tested every version up to 0.6.12), I get many lines like these (the number is not always 2, it varies):

Warning in grep("^[^\\s]+:$", lines, perl = TRUE, value = TRUE) :
  input string 2 is invalid UTF-8

Then the devtools::check() command fails. It looks like it is unable to parse some files in my package, even though they are all in UTF-8. Other commands like use_version() also fail.

I see from the changelog that some changes to UTF-8 handling were made in these two versions.

image

My machine is Windows 10 pro and the LC_CTYPE=French_Canada.1252

@huguesmp
Copy link
Author

I should add that downgrading to 0.6.6 fixes this problem.

@randy3k
Copy link
Owner

randy3k commented Aug 19, 2024

Could you try v0.6.13? I have discovered some other bugs in forcing LC_CTYPE and have to revert it. v0.6.13 may have fixed this issue. (Though it has other issues though, and it was why I was forcing LC_CTYPE, see for example #430).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants