#1069235 diff -r cannot properly display a filename containing an escape sequence and garbles the screen

Package:
diffutils
Source:
diffutils
Description:
File comparison utilities
Submitter:
Al Ma
Date:
2024-04-18 11:30:04 UTC
Severity:
normal
#1069235#5
Date:
2024-04-18 11:27:49 UTC
From:
To:
Package: diffutils
Version: 1:3.8-4
Create two directories: empty A and B containing 'e9'$'\033''[H' .  Then, from an xterm:
$ ls A B
A:
B:
'e9'$'\033''[H'
$ diff -r A B
Nur in B: e9
After this prefix of the file name, the cursor jumps to the second line of the used console from above and the output continues from there. Instead, we expect the file name to be dispayed fully and the cursor go to the next line after the file name.