Skip to content

Commit bcf72d8

Browse files
committed
fix 'invalid byte sequence in UTF-8' on Windows
1 parent 4d41338 commit bcf72d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arduino_ci/host.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def self.readlink(path)
103103
the_file = path.basename.to_s
104104

105105
stdout, _stderr, _exitstatus = Open3.capture3('cmd.exe', "/c dir /al #{the_dir}")
106-
symlinks = stdout.lines.map { |l| DIR_SYMLINK_REGEX.match(l) }.compact
106+
symlinks = stdout.lines.map { |l| DIR_SYMLINK_REGEX.match(l.scrub) }.compact
107107
our_link = symlinks.find { |m| m[1] == the_file }
108108
return nil if our_link.nil?
109109

0 commit comments

Comments
 (0)