From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c9004ca0 for ; Thu, 20 Feb 2020 19:04:14 +0000 (UTC) Received: (qmail 18386 invoked by alias); 20 Feb 2020 19:04:05 -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: List-Unsubscribe: X-Seq: 45482 Received: (qmail 6541 invoked by uid 1010); 20 Feb 2020 19:04:05 -0000 X-Qmail-Scanner-Diagnostics: from mx1.cock.li by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(185.10.68.5):SA:0(-1.9/5.0):. Processed in 4.030186 secs); 20 Feb 2020 19:04:05 -0000 X-Envelope-From: zsugabubus@national.shitposting.agency X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at national.shitposting.agency designates 185.10.68.5 as permitted sender) Date: Thu, 20 Feb 2020 20:03:10 +0100 From: zsugabubus To: zsh-workers@zsh.org Subject: print -v with multibyte characters Message-ID: <20200220190310.tms2xcwk3sjmqb76@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi, $ echo $ZSH_VERSION 5.7.1 $ export {LC_ALL,LANG}=en_US.UTF-8 $ set -o multibyte && echo ok ok Good: $ print ÖÓŐöóő ÖÓŐöóő $ printf -v var ÖÓŐöóő; echo $var ÖÓŐöóő Bad: $ print -v var ÖÓŐ; echo $var öó $ print -v var öóő; echo $var öóŃ -- zsugabubus