Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
invalid characters and multi-byte [x-y] ranges
- X-seq: zsh-workers 36405
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: invalid characters and multi-byte [x-y] ranges
- Date: Thu, 3 Sep 2015 00:07:11 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=cA5W8T1pzeIpBZFgRXWw00ImYGNmWnHgUAbFqJHa0fY=; b=fIRxUJiFOdG7vztBr/xhLlE+ysIaQqJmuB53O0bnmERfkIMqTSiCsEztX8iTulUBeu En+kCJDdiqzMpuI3WMuPmCRZ0nXV7kV1XjmSyvBIDEvcatkdASklLk4bYGWQ+TOXdZQY LC/TjeYBolXmKsomcd154B93AZIMwFydUz3ukngTgHtQ8IW8miz6CASFgrjWqGYH859r jl6n1q64tvvYkEQ4kkzmsGUEHk5yAnvxHHu9f0wMHu2hmwLVaiXae5hV84YgS4W0K1WJ faENGhhEEshqm+GpfZrQ0n/OfRMCNTGKQl+7zyEBibyEELMyuVm2HkwBk1b3R/h0bqtJ xFdA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
is this (in a UTF-8 locale):
$ zsh -c $'[[ \xcc = [\uaa-\udd] ]]' && echo yes
yes
expected or desirable? I know I can't expect much since \xcc is
not a valid character, but I wouldn't have expected it to match
[\uaa-\udd] there.
Same for:
$ zsh -c $'[[ \xcc = [[:alpha:]] ]]' && echo yes
yes
It seems \xcc is treated as U+00CC here (which in UTF-8 is
\xc3\x8c)
$ zsh -c $'[[ \xcc = \ucc ]]' && echo yes
$ zsh -c $'[[ \xcc = [\ucc] ]]' && echo yes
yes
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author