Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh bug: isearch doesn't support unicode properly
- X-seq: zsh-workers 31921
- From: Yichao Yu <yyc1992@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zsh bug: isearch doesn't support unicode properly
- Date: Mon, 28 Oct 2013 11:42:22 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=f4o6v9wn/TPAtPNRGCJLbXg8H6hyzN/GBAfS6iWt8Fo=; b=bCHjuK0bNIaGAL6iJQJHrytlQ6gu+qtIKASVT1w5I/+B3dbGveRCnU0m5SnPTLXvA1 o4FvxsCIh2Z3Qk3OLzdIjJEHwibbHzOYkfKtWjIn16r+OI2UhcsQP+tVJnQWa8PcWefU oEU8kIavLsGVzWwiGwyoJ0pO4NmIjNI5dGe+/HlluNusYm8u5uWOHYaUSXjwB/AeZ7kl jCYiaktRuP/sUdxfrrFQLfTJgXTPwcF35YlbYT4S9M8sgoE8ZkR+5ySdiM4EHZNLLn+D JejxZaWG35agnHbIWZmWJRXJ/gpvFbP+MZWyqbpPcoOw4xxumQL2Lr3lyBrcukK3h8Lh 9NwQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
I've got a problem when typing unicode characters in the zsh's history search.
When trying to use unicode characters in isearch (the default binding
for ^S and ^R), some of the unicode characters are not recognized
correctly. For example, (with utf-8 encoding), when typing "重新安装"
(utf-8 string: \xe9\x87\x8d\xe6\x96\xb0\xe5\xae\x89\xe8\xa3\x85)
what's recognized by zsh is actually "駭涰宩裥" (utf-8 string:
\xe9\xa7\xad\xe6\xb6\xb0\xe5\xae\xa9\xe8\xa3\xa5e). It seems that the
fifth bit in one byte is flipped in come cases.
I'm not yet sure what's wrong with these characters but at least the
meta character processing looks suspicious.
Yichao Yu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author