Skip to content

[0.86] Escape local file URIs for unicode paths #1312

@cipolleschi

Description

@cipolleschi

Target Branch

0.86

Link to commit or PR to be picked

facebook/react-native@9563cb5

Description

facebook/react-native#56878 shows that using unicode characters in paths fails with pod install. Expo fixed this internally here: expo/expo#45779.

This commit build local file:// sources through a shared helper that percent-encodes filesystem paths before passing them to URI::File.build. This avoids Ruby/CocoaPods URI failures when React Native projects or local prebuilt tarballs live under paths containing Unicode characters or spaces.

Apply the helper to RNCore and ReactNativeDependencies local tarball sources, including RNCore dSYM-processed prebuilt paths, while leaving remote Maven and Sonatype URLs unchanged.

Add focused coverage for Unicode, spaces, ASCII paths, and the raw URI::File.build regression case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions