Open MariusDoe opened 1 year ago
On Unix, when dropping a file that has spaces or other special characters in its path, primitiveDropRequestFileName returns a percent-encoded version of the path and primitiveDropRequestFileHandle fails.
primitiveDropRequestFileName
primitiveDropRequestFileHandle
I think the problem is that dropRequestFileName skips the file:/// prefix of the URI, but does not percent-decode it. Interestingly, uri2string, which isn't currently used, does percent-decoding.
dropRequestFileName
file:///
uri2string
dropRequestFileName is used by primitiveDropRequestFileName and also by dropRequestFileHandle, which is why primitiveDropRequestFileHandle fails.
dropRequestFileHandle
Note: I did not check whether this problem exists on other platforms.
On Unix, when dropping a file that has spaces or other special characters in its path,
primitiveDropRequestFileName
returns a percent-encoded version of the path andprimitiveDropRequestFileHandle
fails.I think the problem is that
dropRequestFileName
skips thefile:///
prefix of the URI, but does not percent-decode it. Interestingly,uri2string
, which isn't currently used, does percent-decoding.dropRequestFileName
is used byprimitiveDropRequestFileName
and also bydropRequestFileHandle
, which is whyprimitiveDropRequestFileHandle
fails.Note: I did not check whether this problem exists on other platforms.