diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-10-31 10:05:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-10-31 11:38:08 +0100 |
commit | b8311af8101577aa4ad431d827191cb7526b3435 (patch) | |
tree | 03133ea195bfe70760889022f72b373fc1194bcc /src/socket-activate | |
parent | string-util: it's called OSC sequence, not CSO sequence (diff) | |
download | systemd-b8311af8101577aa4ad431d827191cb7526b3435.tar.xz systemd-b8311af8101577aa4ad431d827191cb7526b3435.zip |
tree-wide: prefer generating 0x1B 0x5C as ANSI sequence "ST"
OSC sequences can be closed with one of three terminators:
1. ASCII code 7, aka BEL, aka ^G, aka \x07, aka \a
2. ASCII code 156, aka \x9c
2. Pair of ASCII code 27 followed by ASCII code 92, aka \x1b\x5c
Of these, in some corner case scenarios BEL makes problem (see #34604).
Hence switch away from that wherever we use it, and prefer the \x1b\x5c
instead. That's preferable over \x9c, since the latter is also a valid
UTF-8 codepoint. See discussion here for example:
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#the-escape-sequence
Fixes: #34604
Diffstat (limited to 'src/socket-activate')
0 files changed, 0 insertions, 0 deletions