From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2900 invoked by alias); 28 Apr 2017 13:54:30 -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: 41025 Received: (qmail 29539 invoked from network); 28 Apr 2017 13:54:30 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 2.055142 secs); 28 Apr 2017 13:54:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (4) Date: Fri, 28 Apr 2017 15:54:23 +0200 From: Sebastian Gniazdowski To: zsh-workers@zsh.org, Peter Stephenson Message-ID: In-Reply-To: <20170428141650.7ed174d6@pwslap01u.europe.root.pri> References: <20170428124439.73447db2@pwslap01u.europe.root.pri> <20170428141650.7ed174d6@pwslap01u.europe.root.pri> Subject: Re: Cannot paste unicode <0221>, <0234> - <024f> X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28 April 2017 at 15:17:40, Peter Stephenson (p.stephenson=40samsung.co= m) wrote: > Probably worth checking if BROKEN=5FWCWIDTH is already defined in confi= g.h > and if not what happens if you define it. It has no effect unless > one of =5F=5FSTDC=5FISO=5F10646=5F=5F or =5F=5FAPPLE=5F=5F is also defi= ned. Tried defining it with the wcwidth hack and without =E2=80=93 no change. = System is OS X so there is =5F=5FAPPLE=5F=5F. > An other option is --enable-unicode9, but you'll need the appropriate > header and library support for that to work. I've installed iconv, it got somewhat detected: checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes ... checking for iconv... no checking for iconv in -liconv... no checking for libiconv in -liconv... yes checking for iconv declaration... -liconv was in configure status, and zsh binary is actually linked with i= t. However, no luck with pasting =22=C8=AE=C8=AF=C8=B0=C8=B1=C8=B2=C8=B3=C8= =B4=C8=B5=C8=B6=C8=B7=C8=B8=C8=B9=22, result is the same, also with=C2=A0= insert-unicode-char > You might want to confirm also if it actually is wcwidth() rather than > iswprint() by hacking zle=5Frefresh.c e.g. the following (untested). Th= is > might be a plausible patch, actually --- if iswprint() succeeds, > presumably the printing width actually is positive (combining character= s > are handled as a special case afterwards). Tried the patch, no luck, result is the same -- Sebastian Gniazdowski psprint /at/ zdharma.org