Subject: Re: bug#29189: 25.3; Dired does not work with binary filenames

From: Eli Zaretskii <[email-masked]>
Date: Tue, 07 Nov 2017 19:08:42 +0200

> From: Andreas Schwab <[email-masked]>
> Date: Tue, 07 Nov 2017 11:00:13 +0100
> Cc: [email-masked]
> 
> > touch $'\265'
> >
> > 1. Navigate to the directory containing said file with Dired
> > 2. Mark file for deletion with d
> > 3. x
> >
> > Expected:
> >
> > File deleted
> 
> It works if you add b to dired-listing-switches, though the buffer isn't
> properly updated afterwards.

Here (with the latest emacs-26 branch) it doesn't produce any error
messages, and the buffer is updated to remove the name of that file,
but 'g' brings it back, so it wasn't really deleted.

I stepped into Fdelete_file, and saw that the file name is correctly
encoded before calling 'unlink'.