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

[FIX] Windows: Correctly handle project paths containing non-ASCII characters #562

Merged
merged 5 commits into from
Dec 18, 2020

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented Dec 15, 2020

The slash module does not convert "extended-length" paths or paths
which contain non-ASCII characters as documented in the modules README:
https://github.com/sindresorhus/slash/blob/7a9158487d8046c13f2de1db7e3734d33bdbb1bd/readme.md#slash-

Since in our case the resulting POSIX paths are only used in our virtual
fs "@ui5/fs", these limitations are not relevent to us.

Therefore we can simply replace any backslashes.

Related to SAP/ui5-fs#294
Resolves SAP/ui5-tooling#469

@RandomByte RandomByte requested a review from matz3 December 15, 2020 14:46
@RandomByte RandomByte force-pushed the no-slash branch 2 times, most recently from 9e2c9e3 to e9c0f20 Compare December 15, 2020 15:07
@coveralls
Copy link

coveralls commented Dec 15, 2020

Coverage Status

Coverage increased (+0.09%) to 93.293% when pulling 95ba241 on no-slash into 9f29bba on master.

matz3
matz3 previously approved these changes Dec 16, 2020
…aracters

The `slash` module does not convert "extended-length" paths or paths
which contain non-ASCII characters as documented in the modules README:
https://github.com/sindresorhus/slash/blob/7a9158487d8046c13f2de1db7e3734d33bdbb1bd/readme.md#slash-

Since in our case the resulting POSIX paths are only used in our virtual
fs "@ui5/fs", these limitations are not relevent to us.

Therefore we can simply replace any backslashes.

Related to SAP/ui5-fs#294
Resolves SAP/ui5-tooling#469
@RandomByte
Copy link
Member Author

RandomByte commented Dec 16, 2020

Still missing: non-ASCII tests for ApplicationFormatter

@RandomByte RandomByte force-pushed the no-slash branch 2 times, most recently from 90af877 to 6f36482 Compare December 17, 2020 16:07
@RandomByte
Copy link
Member Author

Confirmed that the LibraryFormatter tests would fail on Windows without the fix in https://dev.azure.com/sap/opensource/_build/results?buildId=115046&view=results

matz3
matz3 previously approved these changes Dec 17, 2020
@RandomByte
Copy link
Member Author

Now finally ready 🙂

@RandomByte RandomByte merged commit 13001c3 into master Dec 18, 2020
@RandomByte RandomByte deleted the no-slash branch December 18, 2020 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot run ui5 with windows user that has accents in it.
3 participants