Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local directory with certain unicode characters break system #1679

Closed
sr258 opened this issue Aug 18, 2021 · 3 comments · Fixed by #1680 or #1720
Closed

Local directory with certain unicode characters break system #1679

sr258 opened this issue Aug 18, 2021 · 3 comments · Fixed by #1680 or #1720

Comments

@sr258
Copy link
Member

sr258 commented Aug 18, 2021

Due to the bug reported here, the library breaks when the library or content storage lies in a directory with these unicode characters.

@sr258
Copy link
Member Author

sr258 commented Aug 28, 2021

Problem seems to persist in html-exporter

@sr258 sr258 reopened this Aug 28, 2021
@sr258
Copy link
Member Author

sr258 commented Aug 30, 2021

Example: LUMI-AEC

@sr258
Copy link
Member Author

sr258 commented Aug 31, 2021

I believe I've tracked down the origin of this: the postcss-url package also uses path.relative, which is broken in win32 for Turkish characters like (İ) that have different unicode length in uppercase and lowercase variants. None of the arguments of path.relative uses the problematic characters, but the current working directory of the users seems to include them. As path.relative and postcss-url convert relative paths to absolute paths using path.resolve, the working directory path is inserted into the string before the relative path is determined.

The solution should be to temporarily change the current working directory before calling postcss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant