From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3706 invoked from network); 4 Nov 2022 15:32:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Nov 2022 15:32:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667575975; b=WMQpRPKbzOI+qrPpUm6zWkm5/0a7DVKgXa7ehjnywn5uL4Tdrfp0F6Tj5x66VBEUcM14rHyCLE h95hON/GORzj2obewlUtVc+QBzjznxnrm6g44YwjZ2NMTEE1b/WvLCHKFnbtaTUEFR+OjSlk18 jUXG6p2zPULguJTtGOg4NSkq6vFmB5dwKyPNw3wuaidEHJN02xfC3MQHxAP0xxhCus1+kLvzI0 /X2wVNYpv+C2Jb03/halufIaQqdXXOhRNSCTmpjYG8YwIDK/bwzDf0KfP+z0Lgo45KJNcS3oFJ uTofpbnFVYowoVIB/Bv2eTNqD8IL+ojc5RdSmgTjNn/7oQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00004-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.4; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1667575975; bh=hMLREWyJ0xpbjoC/nvMe8+glqK3h30PcrSPmJYMNSpI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=d7RUCmAl7iyGuDO2PNfJeSd3JuLY4fhVe7/ybLI07B8Uze1GSEAVj6E54FQ9G/GUqkOZkEeM3b mufPAxdvR8lRP6CBxO7tIMTrwHDPinYgJmu333G2FWnDGJ7q+5LyiBjTrACbW+hwUyp9GArvAy LnrSRAPudUSt8IQifmzU6jBs40r2H1+f7mctSU/00xxQCzyFgcLdkPtoRJAl3x8JyVXGshjrm2 XwpOHF2NRDRyd4nXcFaVUcYPteRBJWcV+vOfdX2cKV6KJL1KzjW3XeSLu9oz7pCE6Ak42wfjOL afLF7RGRaF2xKrO8LF0WFH9gCBS/h6nkg/Fl2BOFplF1gQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZLV2nZJc/v/8ztMnZhiVv390H6355DnvFNzO1rXM5oU=; b=DCEb98lssw5lt8UhlKAftnQUnP NdT8eNQHBJmtNktD5hf7GO0GGD14YmzOM+WHeCbqcZx/6Fk4domIQc1WBffBisG4Hb1txYtuvE1Wm 0H3saSgTWjPnr+GgqPTN0j8qm/DxcvDIdEkbt1B/mNBib/svUPyFb9G5ezpGA5AyHya+0KdI850+J /mV9OR2XHgAeCpvdjRp0bdod5eoVdPW4ijhR5Cp0hYfTjqf0minbg4NZ8N+8oIzxBijj120ebzfoi hR6v/YcH9QFf7VvlHsrEV5UybFx+6w6wKgNO3KzqbRPSmwgXWwGM76VqQshNTeRDUih4s0KM3r/eV 847bo97g==; Received: by zero.zsh.org with local id 1oqygg-0001l8-LI; Fri, 04 Nov 2022 15:32:54 +0000 Authentication-Results: zsh.org; iprev=pass (snd00004-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.4; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00004-bg.im.kddi.ne.jp ([27.86.113.4]:58272 helo=dfmta0020.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oqygR-0001SE-39; Fri, 04 Nov 2022 15:32:40 +0000 Received: from mail.biglobe.ne.jp by omta0020.biglobe.ne.jp with ESMTP id <20221104153234202.JABW.76285.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Sat, 5 Nov 2022 00:32:34 +0900 From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: UNICODE Private Use Area characters in BUFFER Date: Sat, 5 Nov 2022 00:32:33 +0900 References: <9A1737D9-AE8E-4D9A-84B7-3AB2482C82E0@kba.biglobe.ne.jp> <3FE0CCCF-5B46-4C44-A7A6-CA71D5B25CBD@kba.biglobe.ne.jp> To: zsh-workers@zsh.org In-Reply-To: Message-Id: <96C622D4-64D7-4EEB-800F-1A43A82F4973@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 50872 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Sorry, this is not related with the Roman's original problem (so can be ignored if you do not use East Asian Ambiguous Width chars). > 2022/11/04 20:09, Roman Perepelitsa wrote: > > Perhaps zsh should have a similar option? Currently, if the terminal > option is switched on, prompt will break if it includes private use > area chars. It is not a problem of zsh. iTerm2 (and other terminals) uses the option to control the width of both "East Asian Ambiguous Width" and "User Area" characters (and maybe other characters with ambiguous width). If your "User Area" characters are all single width, and if you do not use East Asian ambig. chars, then you are fine just by unsetting the option (aside from the problem that Zle can't use them). If you want to use the East Asian ambig. chars (with CJK fonts) then you need to set the option on to display them correctly (double width), but zsh (and probably bash/readline) assume them to be single width (since wcwidth() returns 1) and can't edit them correctly. This is a well known problem among Japanese (and Chinese/Korean?) users. But the problem is in wcwidth (or locale definition), and I think we need not fix it in zsh.