File tree 2 files changed +2
-2
lines changed
Sources/RswiftParsers/Shared
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ public class Glob: Collection {
209
209
let includeDirectories = behavior. includesDirectoriesInResults
210
210
211
211
for i in 0 ..< Int ( gt. gl_pathc) {
212
- if let path = String ( validatingUTF8 : gt. gl_pathv [ i] !) {
212
+ if let path = String ( validatingCString : gt. gl_pathv [ i] !) {
213
213
if !includeFiles || !includeDirectories {
214
214
let isDirectory = self . isDirectory ( path: path)
215
215
if ( !includeFiles && !isDirectory) || ( !includeDirectories && isDirectory) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class GlobTests : XCTestCase {
43
43
44
44
private func newTmpDir( ) -> String {
45
45
var tmpDirTmpl = " /tmp/glob-test.XXXXX " . cString ( using: . utf8) !
46
- return String ( validatingUTF8 : mkdtemp ( & tmpDirTmpl) ) !
46
+ return String ( validatingCString : mkdtemp ( & tmpDirTmpl) ) !
47
47
}
48
48
49
49
func testBraces( ) {
You can’t perform that action at this time.
0 commit comments