File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Sources/RswiftParsers/Shared Expand file tree Collapse file tree 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 {
209209 let includeDirectories = behavior. includesDirectoriesInResults
210210
211211 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] !) {
213213 if !includeFiles || !includeDirectories {
214214 let isDirectory = self . isDirectory ( path: path)
215215 if ( !includeFiles && !isDirectory) || ( !includeDirectories && isDirectory) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class GlobTests : XCTestCase {
4343
4444 private func newTmpDir( ) -> String {
4545 var tmpDirTmpl = " /tmp/glob-test.XXXXX " . cString ( using: . utf8) !
46- return String ( validatingUTF8 : mkdtemp ( & tmpDirTmpl) ) !
46+ return String ( validatingCString : mkdtemp ( & tmpDirTmpl) ) !
4747 }
4848
4949 func testBraces( ) {
You can’t perform that action at this time.
0 commit comments