Page MenuHomeFreeBSD

(s)tty: add support for IUTF8 input flag
ClosedPublic

Authored by bnovkov on Oct 3 2023, 4:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 18, 7:17 AM
Unknown Object (File)
Oct 3 2024, 12:32 AM
Unknown Object (File)
Oct 1 2024, 12:42 AM
Unknown Object (File)
Sep 28 2024, 2:48 AM
Unknown Object (File)
Sep 25 2024, 1:15 AM
Unknown Object (File)
Sep 24 2024, 8:13 PM
Unknown Object (File)
Sep 24 2024, 12:44 AM
Unknown Object (File)
Sep 23 2024, 9:54 AM
Subscribers

Details

Summary

This patch adds the necessary kernel and stty code to support setting the IUTF8 flag for ttys.
It is the first of two patches that fix backspace behaviour for UTF-8 encoded characters when in canonical mode.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I like this, modulo namespace pollution issue.

sys/sys/_termios.h
103

what standard defines this symbol? I think we'll need some visibility tweaks.

sys/sys/_termios.h
103

From what I can tell this is a non-standard symbol that was introduced in Linux at some point, but aside from that the actual symbol name is not set in stone. I'm open to suggestions for different names :D

The stty(1) and termios(4) manpages also need to be updated.

sys/sys/_termios.h
103

Then ot needs to be hidden behind BSD_VISIBLE

I've updated the manpages for stty and termios and moved IUTF8 behind __BSD_VISIBLE.

This revision is now accepted and ready to land.Oct 7 2023, 4:37 PM
This revision was automatically updated to reflect the committed changes.