Open fishtreesugar opened 2 months ago
In the pull request at https://github.com/erlang/otp/pull/8537, specifically in commit https://github.com/erlang/otp/commit/8d537f5, the CWD is rebuilt using filename:join/2. However, dest_path was not converted from binary to charlist: https://github.com/jsonkenl/xlsxir/blob/4dbebf2eec01ee661d21d78d3ad5b70a91c3339a/lib/xlsxir/unzip.ex#L153-L154 As a result, filename:join/2 returns a binary filename that fails to concatenate with TrailingSlash, which is a charlist: https://github.com/erlang/otp/blob/94d3cd6/lib/stdlib/src/zip.erl#L2330
CWD
filename:join/2
dest_path
TrailingSlash
Just came here to report the same issue!
In the pull request at https://github.com/erlang/otp/pull/8537, specifically in commit https://github.com/erlang/otp/commit/8d537f5, the
CWD
is rebuilt usingfilename:join/2
. However,dest_path
was not converted from binary to charlist: https://github.com/jsonkenl/xlsxir/blob/4dbebf2eec01ee661d21d78d3ad5b70a91c3339a/lib/xlsxir/unzip.ex#L153-L154 As a result,filename:join/2
returns a binary filename that fails to concatenate withTrailingSlash
, which is a charlist: https://github.com/erlang/otp/blob/94d3cd6/lib/stdlib/src/zip.erl#L2330