diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-20 06:23:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-20 06:23:01 +0300 |
commit | 0a8f56def1597bd886d7c9095c1f73e157d1197b (patch) | |
tree | c48949f97c0c9c065e23a8b3ae4e9e58c58c191f /doc/gawktexi.in | |
parent | 5663bd64a728649e694462caa0c5641c5eac5c60 (diff) | |
download | egawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.tar.gz egawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.tar.bz2 egawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.zip |
\x escape sequences now process a maximum of 2 digits.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 52e61eea..732096cc 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -4848,17 +4848,18 @@ between @samp{0} and @samp{7}. For example, the code for the ASCII ESC @item \x@var{hh}@dots{} The hexadecimal value @var{hh}, where @var{hh} stands for a sequence of hexadecimal digits (@samp{0}--@samp{9}, and either @samp{A}--@samp{F} -or @samp{a}--@samp{f}). Like the same construct -in ISO C, the escape sequence continues until the first nonhexadecimal -digit is seen. @value{COMMONEXT} -However, using more than two hexadecimal digits produces -undefined results. (The @samp{\x} escape sequence is not allowed in -POSIX @command{awk}.) +or @samp{a}--@samp{f}). A maximum of two digts are allowed after +the @samp{\x}. Any further hexadecimal digits are treated as simple +letters or numbers. @value{COMMONEXT} @quotation CAUTION -The next major relase of @command{gawk} will change, such -that a maximum of two hexadecimal digits following the -@samp{\x} will be used. +In ISO C, the escape sequence continues until the first nonhexadecimal +digit is seen. +@c FIXME: Add exact version here. +For many years, @command{gawk} would continue incorporating +hexadecimal digits into the value until a non-hexadecimal digit +or the end of the string was encountered. +However, using more than two hexadecimal digits produces @end quotation @cindex @code{\} (backslash), @code{\/} escape sequence |