From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26221 invoked by alias); 11 Jun 2015 11:33:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35442 Received: (qmail 15514 invoked from network); 11 Jun 2015 11:33:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-97-5579720e7bae Date: Thu, 11 Jun 2015 12:33:31 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: In POSIX mode, ${#var} measures length in bytes, not characters Message-id: <20150611123331.22eb5e03@pwslap01u.europe.root.pri> In-reply-to: <20150611112337.GE2371@tarsus.local2> References: <55738EFE.1050805@inlv.org> <20150608094420.1ce01d90@pwslap01u.europe.root.pri> <20150611112337.GE2371@tarsus.local2> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xy7p8RZWhBv3LtCwONj9kcmD0WHXw A1MAYxSXTUpqTmZZapG+XQJXxsUDs9kKZnFXtL06y97AOIezi5GTQ0LARGLFjAmsELaYxIV7 69lAbCGBpYwSx3cIdzFyAdkzmCQW3PvNDOFsY5T4tvI5WBWLgKrE2f272UFsNgFDiambZjOC 2CIC4hJn155n6WLk4BAW8JFY9TAbJMwrYC+x881/sGWcAkYSf942MELMbGWUOPrpJliCX0Bf 4urfT0wQF9lLzLxyhhGiWVDix+R7LCA2s4CWxOZtTawQtrzE5jVvmSGuVpe4cXc3+wRGoVlI WmYhaZmFpGUBI/MqRtHU0uSC4qT0XEO94sTc4tK8dL3k/NxNjJCg/bKDcfExq0OMAhyMSjy8 FScqQoVYE8uKK3MPMUpwMCuJ8E7KrAwV4k1JrKxKLcqPLyrNSS0+xCjNwaIkzjt31/sQIYH0 xJLU7NTUgtQimCwTB6dUAyPLbqbQWKv9WSZnuNt6WOIuNKskaynFB0S3xr408ggVSJee3xB3 8+GlmzUx8ounGIiwXry/XemBYbHeHMXGxVHV5iI5FR1L7C7cmZbCuWpuoNqBrjn/Dn34md6p KyYSe3nyr4i0h/NXNhi+Df9y6Z/uqYDO5V7f5b488txYKezQusKPn3eBoBJLcUaioRZzUXEi ANgPbqZWAgAA On Thu, 11 Jun 2015 11:23:37 +0000 Daniel Shahaf 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) )( +item(tt(MULTIBYTE) )( 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