On Thu, Apr 30, 2026 at 01:02:37AM +0400, Marc-André Lureau wrote: > Add a QOM "encoding" enum property to some chardev-vc backends > (console-vc & dbus - gtk and spice don't make use of it) so that the > machine compat mechanism can override the default. For machine versions > prior to 11.1, the charset defaults to cp437 (raw 8-bit VGA) instead of > utf8, preserving the historical behaviour. > > The following commits are going to wire this to VT100 emulation code and > an extra exported D-Bus property. > > Note that GTK libvte uses utf8 unconditionally, and Spice doesn't have a > way to set the encoding, and typically just use libvte in client too. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > include/chardev/char.h | 19 +++++++++++++++++++ > hw/core/machine.c | 4 +++- > ui/console-vc.c | 18 ++++++++++++++++++ > ui/dbus.c | 40 ++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 80 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
