about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-12-13 22:30:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-12-13 22:30:37 +0000
commitd8e36bffa29b31c3533b4877701e37e3cffe44fb (patch)
tree1b6c3cb8bc7c42ebed3b20fe08377aad663354f0 /Doc/Zsh
parentf50dfd61f66d61d17c2ae14e03f32a502da577fa (diff)
downloadzsh-d8e36bffa29b31c3533b4877701e37e3cffe44fb.tar.gz
zsh-d8e36bffa29b31c3533b4877701e37e3cffe44fb.tar.xz
zsh-d8e36bffa29b31c3533b4877701e37e3cffe44fb.zip
23052: multibyte characters in typeset -L/R/Z padding
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/builtins.yo9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 27f91e8b6..51c1fd00c 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1405,6 +1405,15 @@ If var(n) is zero, the width is determined by the width of the value of
 the first assignment.  In the case of numeric parameters, the length of the
 complete value assigned to the parameter is used to determine the width,
 not the value that would be output.
+
+The width is the count of characters, which may be multibyte characters
+if the tt(MULTIBYTE) option is in effect.  Note that the screen
+width of the character is not taken into account; if this is required,
+use padding with parameter expansion flags
+tt(${+LPAR()ml)var(...)tt(RPAR())var(...)tt(}) as described in
+`Parameter Expansion Flags' in
+ifzman(zmanref(zshexpn))ifnzman(noderef(Parameter Expansion)).
+
 When the parameter is expanded, it is filled on the right with
 blanks or truncated if necessary to fit the field.
 Note truncation can lead to unexpected results with numeric parameters.