Skip to content

Filenames with non-ASCII characters get duplicated in tab list #4469

Closed

Description

@martj42

System details

RStudio Edition : Desktop
RStudio Version : 1.2.1328
OS Version      : Windows 10
R Version       : 3.5.2

I have two files starting with "q" in my working directory: "qääääää.csv" and "q诶 ēi B 比 bǐ C 西.txt". When I try to link to them in my code via typing out the letter q and then pressing tab I get this:

I guess this is two bugs in one:

  1. Both filenames are duplicated
  2. The Chinese one is displayed incorrectly both times.

Out of the 4 only "qääääää.csv" will be read, the other 3 "do not exist in the working directory".

For what it's worth if I straight up run "read_csv("q诶 ēi B 比 bǐ C 西.txt")", I will get "Error: 'q<U+8BF6> ei B <U+6BD4> bi C <U+897F>.txt' does not exist in current working directory". But that and the second "bug" are probably(maybe) incorrect locale setting on my end?

Activity

  1. kevinushey commented on Mar 18, 2019

    @kevinushey
    Collaborator

    Part of the issue here is simply that list.files() doesn't understand how to list files that contain multibyte characters, and we still use this in some places within the R completion engine.

  2. added this to the v1.3 milestone on Mar 18, 2019
  3. added
    autocompletion
    on Dec 2, 2019
  4. removed this from the v1.3 milestone on Dec 2, 2019
  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 Feb 1, 2022

    @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 Feb 1, 2022
  8. github-actions commented on Feb 15, 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

    autocompletionbugencodingstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions