Skip to content

UTF Characters for relative path #27534

@JSMonk

Description

@JSMonk

Version: 10.15.3
Platform: Windows 64bit
Subsystem: "path" module

const path = require("path");

const rootPath = "İ"; // Turkish character, char code 304
const absolute = "c:\\Users\\root\\Documents\\İ\\test.txt";

const relative = path.relative(rootPath, absolute); // est.txt

Expected result: test.txt
Actual result: est.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.pathIssues and PRs related to the path subsystem.windowsIssues and PRs related to the Windows platform.

    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