Skip to content

Multibyte characters (i.e., Japanese) appear in volume label of partition of a drive causing error #95

@e-perl-NOAA

Description

@e-perl-NOAA

This issue is for record keeping of a problem that someone with FRA encountered trying to download the SAC Tool.

Error

Loading required package: tools
Warning in sub(" *\\r$", "", volNames) :
' to a wide stringate '<83>{<83><8a><83><85><81>[<83><80>
Warning: Error in sub: input string 4 is invalid
40: sub
39: getVolumes()
38: server [C:\Users\username\SS-DL-tool-master\SS-DL-tool-master/server.R#5419]
1: shiny::runApp
Error in sub(" *\\r$", "", volNames) : input string 4 is invalid

Machine Type

Windows 11 (64bit)

Solution found by user

The cause was multibyte characters (i.e., Japanese) appeared in a volume label of a partition of a drive in the machine.

After deleting the characters (i.e., empty volume label), the app was properly launched.

I suspect that when shiny searched for a label of each volume, the multibyte characters caused an error.

https://rdrr.io/cran/shinyFiles/src/R/aaa.R

I referred to the link above and detected the multibyte characters by using the following method in the Powershell.

[System.IO.DriveInfo]::GetDrives()

When I divided the C drive into two partitions at the initial setup of the machine, the multibyte-character volume label was automatically set for a new partition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions