Skip to content

RStudio generates an error if unicode character in TEMP/TMP environment variable path #5560

Closed

Description

@fk-inspirit-tech

Windows 10, V.1.2.5001

If environment varaible path contains a unicode character, RStudio will fail to load properly:

  • Fatal error: system error 5 (access denied) path to environment variable
  • Menus are inactive, main windows is empty or displays "the site cannot be accessed"

Example:
C:\Users\François\AppData\Local\Temp
This path in the environment variables TEMP/TMP will cause an error.

Change to C:\TEMP and the RStudio runs perfectly.

Activity

  1. kevinushey commented on Oct 16, 2019

    @kevinushey
    Collaborator

    To be clear, did you modify your environment variable explicitly to include this? Or are these just the default settings picked up on your machine?

  2. fk-inspirit-tech commented on Oct 16, 2019

    @fk-inspirit-tech
    Author

    C:\Users\François\AppData\Local\Temp is the default path for both my TEMP and TMP environtment variables.

    It looks like it's a unicode issue because the error message displays the path, and in the error message the "ç" is not displayed correctly.

    Changing to C:\TEMP is a workaround.

  3. kevinushey commented on Oct 16, 2019

    @kevinushey
    Collaborator

    Do you have any other user accounts on your system?

    I tried creating an account called 鬼, and in my case Windows used a short path name instead (sidestepping encoding issues):

    IIRC, Windows only generates short path names for files in a directory if there happens to be more than one path, and one or more of the paths requires that representation to be disambiguated.

  4. fk-inspirit-tech commented on Oct 16, 2019

    @fk-inspirit-tech
    Author

    No I only have my user account.

  5. stale commented on Feb 5, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  6. github-actions commented on Dec 31, 2021

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  7. added
    stale
    on Dec 31, 2021
  8. github-actions commented on Jan 14, 2022

    @github-actions

    This issue has been automatically closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugencodingstalewindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions