Subject: Re: bug#43789: 27.1; Dired cannot handle file which name contains linebreak

From: Eli Zaretskii <[email-masked]>
Date: Sun, 04 Oct 2020 12:36:58 +0300

> Date: Sun, 4 Oct 2020 16:58:06 +0800 (CST)
> From: "Zhu Zihao" <[email-masked]>
> 
> 1. Use touch from coreutils or find-file in Emacs to create a file which name contains a linebreak. (e.g.
> "line\nbreak")
> 2. Visit it in dired, you cannot do anything with this file because the characters after "\n" was ignored by
> dired.

You need to add -b to the 'ls' switches, and then it will work.  That
is:

  C-u C-x d
  b RET

The "b RET" part makes the switches passed to 'ls' be "-alb" instead
of the default "-al".