Closed rymut closed 3 years ago
Thanks for the pull request, @rymut.
This currently breaks a large number of tests when running on Linux (which is what the vast majority of Overcommit users use).
Failure/Error: ec = Encoding::Converter.new(Encoding.locale_charmap, 'UTF-8')
Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-8)
If the issue is only reproducible when checking for bad symlinks, can we isolate this change to just change the encoding on the problematic line? Specifically:
Thanks @sds: in my case only calling win32_symlink is reproducible - but the underlying problem will still be present. My current commit should fix the issue with braking tests under linux - if the problems with the tests will be still persisting then I will isolate a change to win32_simlink.
Output of commands under windows is not UTF-8 by default, this can lead to "invalid byte sequence in UTF-8" error on symlink check