diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -462,6 +462,7 @@ #define LINUX_IXOFF 0x0001000 #define LINUX_IMAXBEL 0x0002000 +#define LINUX_IUTF8 0x0004000 /* Linux c_oflag masks */ #define LINUX_OPOST 0x0000001 diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -416,6 +416,8 @@ lios->c_iflag |= LINUX_IXOFF; if (bios->c_iflag & IMAXBEL) lios->c_iflag |= LINUX_IMAXBEL; + if (bios->c_iflag & IUTF8) + lios->c_iflag |= LINUX_IUTF8; lios->c_oflag = 0; if (bios->c_oflag & OPOST) @@ -533,6 +535,8 @@ bios->c_iflag |= IXOFF; if (lios->c_iflag & LINUX_IMAXBEL) bios->c_iflag |= IMAXBEL; + if (lios->c_iflag & LINUX_IUTF8) + bios->c_iflag |= IUTF8; bios->c_oflag = 0; if (lios->c_oflag & LINUX_OPOST)