about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-06-30 09:41:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-06-30 09:41:34 +0000
commit4cd7b957f382c1d961641629a84ada8384953598 (patch)
tree953744b3c8ffd0e1da315b8bf10f044f1f6a0a7b /Doc/Zsh
parent92737d2c42f8df17ce910a2ca04fd09b84a5b6a3 (diff)
downloadzsh-4cd7b957f382c1d961641629a84ada8384953598.tar.gz
zsh-4cd7b957f382c1d961641629a84ada8384953598.tar.xz
zsh-4cd7b957f382c1d961641629a84ada8384953598.zip
22529: multibyte conversion in math expressions
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/arith.yo15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo
index 33ca09c20..f13cad987 100644
--- a/Doc/Zsh/arith.yo
+++ b/Doc/Zsh/arith.yo
@@ -129,13 +129,14 @@ the tt(zmodload) builtin to provide standard floating point mathematical
 functions.
 
 An expression of the form `tt(##)var(x)' where var(x) is any character
-sequence such as `tt(a)', `tt(^A)', or `tt(\M-\C-x)' gives the ASCII
-value of this character and an expression of the form `tt(#)var(foo)'
-gives the ASCII value of the first character of the value of the
-parameter var(foo).  Note that this is different from the expression
-`tt($#)var(foo)', a standard parameter substitution which gives the
-length of the parameter var(foo).  `tt(#\)' is accepted instead of
-`tt(##)', but its use is deprecated.
+sequence such as `tt(a)', `tt(^A)', or `tt(\M-\C-x)' gives the value of
+this character and an expression of the form `tt(#)var(foo)' gives the
+value of the first character of the contents of the parameter var(foo).
+Character values are according to the character set used in the current
+locale; for multibyte character handling the option tt(MULTIBYTE) must be
+set.  Note that this form is different from `tt($#)var(foo)', a standard
+parameter substitution which gives the length of the parameter var(foo).
+`tt(#\)' is accepted instead of `tt(##)', but its use is deprecated.
 
 Named parameters and subscripted arrays can be referenced by name within an
 arithmetic expression without using the parameter expansion syntax.  For