From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23634-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b2891c9d for ; Sun, 16 Sep 2018 08:55:47 +0000 (UTC) Received: (qmail 25505 invoked by alias); 16 Sep 2018 08:55:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23634 Received: (qmail 189 invoked by uid 1010); 16 Sep 2018 08:55:33 -0000 X-Qmail-Scanner-Diagnostics: from smtpout10.34sp.com 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(46.183.8.76):SA:0(-1.9/5.0):. Processed in 2.169866 secs); 16 Sep 2018 08:55:33 -0000 X-Envelope-From: dave@dawoodfall.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: amavisd-new at smtpout.34sp.com Date: Sun, 16 Sep 2018 09:47:10 +0100 From: David Woodfall To: Zsh Users Subject: Completion/matcher error with file names that contain Message-ID: <20180916084710.GO20615@blackswan> Mail-Followup-To: Zsh Users MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1+44 (f0772c95) (2018-07-17) X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 unicode glyphs zsh 5.6.2 in a plain linux console (which is set up for unicode.) I get this error when I try to complete a non-existent file with 'ls' and other commands when a file in pwd contains a unicode glyph in the namw. e.g. 'PAБOTA' 516: utils.c:5456: BUG: unexpected end of string in mb_metacharlen() After a little commenting out some of the completion lines in my config I found that it comes down to the last line in my matcher-list: zstyle ':completion:*' matcher-list \ 'm:{a-zA-Z\-}={A-Za-z\_}' \ 'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-zA-Z\-}={A-Za-z\_}' \ 'r:|?=** m:{a-zA-Z\-}={A-Za-z\_}' I'll admit right here that I found the last two lines in that matcher-list on the net and don't have much clue on what the ones that use =* do. I was looking for partial in-word completion so that e.g. doing: cd air would complete to cd vim-airline Thoughts? -- Note that if I can get you to "su and say" something just by asking, you have a very serious security problem on your system and you should look into it. -- Paul Vixie, vixie-cron 3.0.1 installation notes .--. oo (____)// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'