-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of file: module URIs with non-ASCII characters
Closes #653
- Loading branch information
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
pkl-core/src/test/files/LanguageSnippetTests/input/modules/日本語.pkl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// covers https://github.com/apple/pkl/issues/653 | ||
日本語 = "Japanese language" | ||
readOne = read("日本語.pkl").text | ||
readGlob = read*("./日*.pkl").keys | ||
importOne = import("日本語.pkl").readOne | ||
importGlob = import*("./日*.pkl").keys |
21 changes: 21 additions & 0 deletions
21
pkl-core/src/test/files/LanguageSnippetTests/output/modules/日本語.pcf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
日本語 = "Japanese language" | ||
readOne = """ | ||
// covers https://github.com/apple/pkl/issues/653 | ||
日本語 = "Japanese language" | ||
readOne = read("日本語.pkl").text | ||
readGlob = read*("./日*.pkl").keys | ||
importOne = import("日本語.pkl").readOne | ||
importGlob = import*("./日*.pkl").keys | ||
""" | ||
readGlob = Set("./日本語.pkl") | ||
importOne = """ | ||
// covers https://github.com/apple/pkl/issues/653 | ||
日本語 = "Japanese language" | ||
readOne = read("日本語.pkl").text | ||
readGlob = read*("./日*.pkl").keys | ||
importOne = import("日本語.pkl").readOne | ||
importGlob = import*("./日*.pkl").keys | ||
""" | ||
importGlob = Set("./日本語.pkl") |