Skip to content

[Windows] Possible problems with paths with Umlaute/accentuated characters #97

@creambyemute

Description

@creambyemute

Hello there :-)

I thought I may give you a heads-up about a possible problem with Umlaute/accentuated character in paths on the windows implementation.

Library Version: I'm currently using react-native-fs for Windows and rn-fetch-blob (old repo) for Android + iOS but plan on migrating in then near future.

RNFS with the windows implementation has a problem with paths that contain Umlaute/accentuated characters (ä, ö, ü, é, à etc).

As far as I've seen while glimpsing over the windows implementations the std::string --> std::filesystem::path conversion will probably result in similiar problems:

Scenario / Repro Steps

  1. Create a windows user account that contains Umlaute/accentuated characters (ä, ö, ü, é, à etc), example: t.müstermann
  2. Try to create a folder / read a file / write a file inside the application directory

I'm currently looking into it in RNFS and have made an example of changes here: itinance/react-native-fs#952

Edit: See wwimmo/react-native-fs#9 as an example PR on RN-FS

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