summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-12-25 14:18:49 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-12-25 14:19:10 -0800
commita9f5544ff60bcc113253861f463471b169def545 (patch)
treeb86dbe1eb777cd56bae36b34d16d540b41cc7e08
parentbabc8660d5a7561ed7e99e09aeabffaccfe06d6d (diff)
downloadautoconf-a9f5544ff60bcc113253861f463471b169def545.tar.gz
Document AIX 7.2 printf command gotcha
* doc/autoconf.texi (Limitations of Builtins): Document AIX 7.2 sh printf problem with octal escapes.
-rw-r--r--doc/autoconf.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 2ac66969..a591912a 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -17987,6 +17987,12 @@ or @samp{%s} is probably easiest:
printf %s -foo
@end example
+AIX 7.2 @command{sh} mishandles octal escapes in multi-byte locales by
+treating them as characters instead of bytes. For example, in a locale
+using the UTF-8 encoding, @samp{printf '\351'} outputs the two bytes C3,
+A9 (the UTF-8 encoding for U+00E9) instead of the desired single byte E9.
+To work around the bug, use the C locale.
+
Bash 2.03 mishandles an escape sequence that happens to evaluate to @samp{%}:
@example