After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743867 - Strip unprintable chars from cwd before making it the title
Strip unprintable chars from cwd before making it the title
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.39.x
Other Linux
: Normal minor
: ---
Assigned To: VTE Maintainers
VTE Maintainers
[vte.sh]
Depends on:
Blocks:
 
 
Reported: 2015-02-02 16:03 UTC by Egmont Koblinger
Modified: 2021-03-23 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Egmont Koblinger 2015-02-02 16:03:33 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.
Comment 1 Christian Persch 2021-03-23 20:21:04 UTC
I think we can call this fixed, since vte-urlencode-cwd %-encodes these characters.