Repository navigation
use UTF-8 strings in a few more places - #8433
Merged
Merged
Conversation
jmcphers
approved these changes
Nov 18, 2020
jmcphers
left a comment
Member
There was a problem hiding this comment.
LGTM, but: does this fix an existing (tracked) issue? Do we need it for 1.4?
Collaborator
Author
|
I filed an associated issue here: If I understand correctly, this issue will effect anyone on Windows who is using R 4.0+, and has non-ASCII characters in their username. Given the potential prevalence of the issue I think it's worth fixing for 1.4. |
jmcphers
approved these changes
Nov 18, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
While testing on a Windows account with a user with non-English letters, I noticed a couple more issues with handling of filenames:
From what I understand, this is caused by (failed?) attempts to convert UTF-8 strings to the native encoding, as opposed to just using the UTF-8 strings as-is.
Approach
Augment our
RFunctionclass with a newaddUtf8Param()function, which is used to add strings (or string-like things) which should be UTF-8 encoded.QA Notes
Testing this is somewhat broad: it would be worth checking that RStudio functions without issue on Windows, for a user whose user name has accented characters. (I tested with an account name Crème Brûlée.
Closes #8435.