From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: In POSIX mode, ${#var} measures length in bytes, not characters
Date: Thu, 11 Jun 2015 12:33:31 +0100 [thread overview]
Message-ID: <20150611123331.22eb5e03@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20150611112337.GE2371@tarsus.local2>
On Thu, 11 Jun 2015 11:23:37 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> Update zshoptions.yo?
Yes, I've been meaning to.
pws
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index fa54024..db9b18b 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -634,7 +634,7 @@ pindex(NO_MULTIBYTE)
pindex(NOMULTIBYTE)
cindex(characters, multibyte, in expansion and globbing)
cindex(multibyte characters, in expansion and globbing)
-item(tt(MULTIBYTE) <C> <K> <Z>)(
+item(tt(MULTIBYTE) <D>)(
Respect multibyte characters when found in strings.
When this option is set, strings are examined using the
system library to determine how many bytes form a character, depending
@@ -642,10 +642,8 @@ on the current locale. This affects the way characters are counted in
pattern matching, parameter values and various delimiters.
The option is on by default if the shell was compiled with
-tt(MULTIBYTE_SUPPORT) except in tt(sh) emulation; otherwise it is off by
-default and has no effect if turned on. The mode is off in tt(sh)
-emulation for compatibility but for interactive use may need to be
-turned on if the terminal interprets multibyte characters.
+tt(MULTIBYTE_SUPPORT); otherwise it is off by default and has no effect
+if turned on.
If the option is off a single byte is always treated as a single
character. This setting is designed purely for examining strings
prev parent reply other threads:[~2015-06-11 11:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-07 0:23 Martijn Dekker
2015-06-07 0:34 ` ZyX
2015-06-07 1:23 ` Bart Schaefer
2015-06-07 1:27 ` ZyX
2015-06-07 2:21 ` Martijn Dekker
2015-06-09 17:49 ` Martijn Dekker
2015-06-08 8:44 ` Peter Stephenson
2015-06-09 2:19 ` Martijn Dekker
2015-06-09 8:35 ` Peter Stephenson
2015-06-09 15:37 ` Bart Schaefer
2015-06-09 15:43 ` Peter Stephenson
2015-06-11 11:23 ` Daniel Shahaf
2015-06-11 11:33 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150611123331.22eb5e03@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).