Skip to content

browseURL() returns a "Failed to open" error if path contains a non-ASCII character #9985

Closed

Description

@avila

As suggested in quarto-dev/quarto#782 (comment), I am opening this issue here.

System details:

Positron and OS details:

Positron Version: 2025.10.0 (user setup) build 199
Code - OSS Version: 1.103.0
Commit: 81d0c98dbf719e29097b9c700877398d7af13138
Date: 2025-10-09T17:54:48.567Z
Electron: 37.2.3
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Windows_NT x64 10.0.19045

Session details:

  • R 4.4.1

Describe the issue:

Steps to reproduce the issue:

dir.create("tütü")
setwd("tütü")
browseURL(".")   # Does not work on Positron
shell.exec(".")  # works on Positron

# just cleaning up
setwd("..")
unlink("tütü", recursive = TRUE)

Expected or desired behavior:

The current folder should be opened with the file explorer.

Notes:

Workaround

Changing the default browser to something like the following "fixes" the issue (but of course this might lead to unintended consequences elsewhere)

browser2 <- function(path) shell.exec(normalizePath(path))
options(browser = browser2)

Activity

  1. jmcphers commented on Oct 16, 2025

    @jmcphers
    Collaborator

    I can reproduce this. Thank you for reporting!

    Image
  2. added theissue type on Oct 16, 2025
  3. self-assigned this
    on Oct 20, 2025
  4. added this to the 2025.11.0 Release milestone on Oct 20, 2025
  5. jonvanausdeln commented on Oct 30, 2025

    @jonvanausdeln
    Contributor

    Verified Fixed

    Positron Version(s) : 2025.11.0-231
    OS Version(s) : Windows 11

    Test scenario(s)

    non-ASCII paths work as expected
    Test code

    # Example 1: Latin letters with umlauts
    dir.create("tütü")
    setwd("tütü")
    browseURL(".")
    setwd("..")
    unlink("tütü", recursive = TRUE)
    
    # Example 2: Characters with accents
    dir.create("café")
    setwd("café")
    browseURL(".")
    setwd("..")
    unlink("café", recursive = TRUE)
    
    # Example 3: Cyrillic characters
    dir.create("тест")
    setwd("тест")
    browseURL(".")
    setwd("..")
    unlink("тест", recursive = TRUE)
    
    # Example 4: Chinese characters
    dir.create("测试")
    setwd("测试")
    browseURL(".")
    setwd("..")
    unlink("测试", recursive = TRUE)
    
    # Example 5: Emoji
    dir.create("folder😀")
    setwd("folder😀")
    browseURL(".")
    setwd("..")
    unlink("folder😀", recursive = TRUE)
  6. locked as resolved and limited conversation to collaborators on Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

lang: ros-windows

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions