This code:
%w[
/蟿蔚位蔚委伪/蟿蔚位蔚委伪
/M氓ned氓/M氓ned氓
].each { |dir| pp File.dirname dir }
produces
"/蟿蔚位蔚委\xCE"
"/M氓ned\xC3"
Crystal 0.33.0 [612825a53] (2020-02-14)
LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu
Stopped working in Crystal 0.28.0 (using the new impl. based on Path#dirname).
On it.
Most helpful comment
On it.