URL: <https://savannah.gnu.org/bugs/?66368>
Summary: Wrong UTF-8 handling of OSC xterm strings Group: GNU Screen Submitter: lvd Submitted: Tue 22 Oct 2024 11:41:46 AM UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 5.0.1 Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Tue 22 Oct 2024 11:41:46 AM UTC By: lvd <lvd> Reproducing: echo -ne "\033]0;Иq\007" where first character after ';' is U+0418, D0 98, "Cyrillic Capital Letter I". The screen would first parse utf-8 char into an int, then put to the output string only low 8 bits of the whole unicode character. For the given letter, a weird control code would result, that tries to break terminal (no header is set, instead garbage is printed). Basing on bug #61032 and taking into account bug #66367, here is the patch for 5.0.0 codebase. PS: this bug is common for UTF-8 directory names and a shell configured to put current directory name into xterm window header through xterm OSC sequence. _______________________________________________________ File Attachments: ------------------------------------------------------- Name: screen_5.0.0.patch Size: 3KiB <https://file.savannah.gnu.org/file/screen_5.0.0.patch?file_id=56565> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-0ec73e70b6be16d7a4f836e99bd2d12163ba772c.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66368> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature