Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Nov 2023 08:36:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274812] /usr/src/bin/stty/modes.c:129:13: error: use of undeclared identifier 'IUTF8'
Message-ID:  <bug-274812-227-w8xVUSNimL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274812-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274812-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274812

Fred L. Finster <wb7odyfred@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wb7odyfred@yahoo.com

--- Comment #2 from Fred L. Finster <wb7odyfred@yahoo.com> ---
root@fredselfbuilt_rpi4b:/usr/src/include # grep -nRS IUTF8 *.c *.h
grep: *.c: No such file or directory
root@fredselfbuilt_rpi4b:/usr/src/include # grep -nRS IUTF8 *
root@fredselfbuilt_rpi4b:/usr/src/include # cd ..
root@fredselfbuilt_rpi4b:/usr/src # grep -nRS IUTF8 *
bin/stty/modes.c:129:   { "iutf8",      IUTF8, 0 },
bin/stty/modes.c:130:   { "-iutf8",     0, IUTF8 },
bin/stty/print.c:130:   put("-iutf8", IUTF8, 1);
crypto/openssh/ttymodes.c:316:#define SSH_TTYMODE_IUTF8 42  /* for
SSH_BUG_UTF8TTYMODE */
crypto/openssh/ttymodes.c:319:  if (OP =3D=3D SSH_TTYMODE_IUTF8 && (ssh->co=
mpat &
SSH_BUG_UTF8TTYMODE)) { \
crypto/openssh/ttymodes.h:121:#ifdef IUTF8
crypto/openssh/ttymodes.h:122:TTYMODE(IUTF8,  c_iflag, 42)
crypto/openssh/ttymodes.h:123:#endif /* IUTF8 */
share/man/man4/termios.4:887:.It Dv IUTF8
stand/kboot/arch/powerpc64/termios_arch.h:54:#define HOST_IUTF8   0040000

stand/kboot/termios_gen.h:52:#define HOST_IUTF8   0040000

sys/kern/tty_ttydisc.c:811:                     } else if
((tp->t_termios.c_iflag & IUTF8) !=3D 0 &&
sys/kern/tty.c:89:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20
IGNCR|ICRNL|IXON|IXOFF|IXANY|IMAXBEL|IUTF8)

sys/sys/_termios.h:100:#define IUTF8            0x00004000      /* assume i=
nput
is utf-8 encoded */

^C
Here is a simplistic answer to something you probably have figured out.
Hope this grep -nR helps you find , which *.h file got left out or modified
Here are 2 places IUTF8 are defined.  Now to figure out why they were not
included.  You have to just run the preprocessor on the C code base, and th=
en
look for what DID NOT GET defined,   Fred
stand/kboot/termios_gen.h:52

sys/sys/_termios.h:100

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274812-227-w8xVUSNimL>