mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 01:10:42 +00:00
LibVT: Fix UTF-8 handling in OSC sequences
Previously, we would ignore bytes in the `0x80..0xff` range when parsing OSC strings. This caused terminal titles and hyperlinks containing non-ASCII characters to fail. Also added is extending the UTF-8 fail functionality for C1 control codes, since we do not handle those. Fixes #7377
This commit is contained in:
parent
62819df713
commit
282d0ebbec
Notes:
sideshowbarker
2024-07-18 17:31:41 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/282d0ebbec1 Pull-request: https://github.com/SerenityOS/serenity/pull/7398 Issue: https://github.com/SerenityOS/serenity/issues/7377
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,7 @@ Ground {
|
|||
|
||||
[0x20..0x7f] => (_, Print)
|
||||
|
||||
[0xa0..0xc1] => (Ground, FailUTF8)
|
||||
[0x80..0xc1] => (Ground, FailUTF8)
|
||||
[0xc2..0xdf] => (UTF81ByteNeeded, BeginUTF8)
|
||||
[0xe0..0xef] => (UTF82BytesNeeded, BeginUTF8)
|
||||
[0xf0..0xf4] => (UTF83BytesNeeded, BeginUTF8)
|
||||
|
@ -211,7 +211,6 @@ OscString {
|
|||
0x19 => (_, _)
|
||||
[0x1c..0x1f] => (_, _)
|
||||
|
||||
[0x20..0x7f] => (_, OscPut)
|
||||
0x9c => (Ground, _)
|
||||
[0x20..0xff] => (_, OscPut)
|
||||
@exit OscEnd
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue