Date: Thu, 5 Jun 2008 17:44:18 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys ttydefaults.h Message-ID: <200806051806.m55I6LMF056823@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2008-06-05 18:06:21 UTC FreeBSD src repository Modified files: sys/sys ttydefaults.h Log: SVN rev 179567 on 2008-06-05 17:44:18Z by ed Fix faulty character to control-character conversion for CTRL(). The CTRL() macro seems to perform character to control-character conversion (i.e. 'A' to 0x01) to lowercase characters. This is actually not valid. If we use lowercase characters, conversions such as CTRL('\\') and CTRL('?') will result to invalid conversions. Because we must still support old source code that uses CTRL() (bad!), we make CTRL() accept both forms. When the character is a lowercase character, we perform the old style conversion. Approved by: philip (mentor) Revision Changes Path 1.20 +23 -16 src/sys/sys/ttydefaults.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806051806.m55I6LMF056823>