Skip to content

Commit 6ed0e88

Browse files
committed
fix 'invalid byte sequence in UTF-8' on Windows
1 parent 75a391e commit 6ed0e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arduino_ci/host.rb

Lines changed: 1 addition & 1 deletion
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)