We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff94d8 commit d38f603Copy full SHA for d38f603
Sources/swift-sh/Helpers/DepsPackage.swift
@@ -220,7 +220,7 @@ struct DepsPackage {
220
/* These rules are ad-hoc and work in the case I tested (an XcodeTools dependency).
221
* There are probably many cases where they won’t work. */
222
if url.lastPathComponent.lowercased() == "module.modulemap",
223
- try String(contentsOf: url).contains("[system]")
+ try String(contentsOf: url, encoding: .utf8).contains("[system]")
224
{
225
ret.append("-I\(url.deletingLastPathComponent().absoluteURL.path)")
226
directoryEnumerator.skipDescendants()
0 commit comments