GNOME Bugzilla – Bug 743867
Strip unprintable chars from cwd before making it the title
Last modified: 2021-03-23 20:21:14 UTC
egmont@foo:~$ mkdir $'abcd\aefgh' egmont@foo:~$ cd $'abcd\aefgh' efghegmont@foo:~/abcdefgh$ If the current directory contains unprintable characters, e.g. BEL in this case, it's passed to the window title terminating the OSC 0 escape sequence and returning to literally print the rest or even try new escape sequences. Unprintable characters (at least the ones that can terminate this sequence: BEL and ESC (part of ST)) should be removed from cwd before setting the title.
I think we can call this fixed, since vte-urlencode-cwd %-encodes these characters.