From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17891 invoked by alias); 7 Dec 2015 18:36:01 -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: 37343 Received: (qmail 238 invoked from network); 7 Dec 2015 18:35:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1449512970; bh=7R/2FxiQgnOFqOeeikrlcOWeNZnyjTv7haJ4m46aCmQ=; h=From:To:In-Reply-To:References:Subject:Date; b=pHGOxvibJo/jdbv4e1CeQAHKowmWODmk/oySuPM8e9TkB+/NeXdOrbWjeDqS0qQCe 6RB863W6eERYHRdhLFWI02sTYcb8Vp6vp9Wbvh9GajabuRPCIotXcApXU/1OL0HV4G oG63ZA1F4NbQQX3Dwr67xm4IjndI743OrMoc69a8= From: "Nikolay Aleksandrovich Pavlov (ZyX)" To: Peter Stephenson , "zsh-workers@zsh.org" In-Reply-To: <20151207102449.5993404a@pwslap01u.europe.root.pri> References: <20151203140558.GA17469@zira.vinc17.org> <20151203142533.5aae65f6@pwslap01u.europe.root.pri> <20151204142900.0c035c6a@pwslap01u.europe.root.pri> <20151204215611.17d060fb@ntlworld.com> <151206150844.ZM31242@torch.brasslantern.com> <20151207102449.5993404a@pwslap01u.europe.root.pri> Subject: Re: The "set" utility outputs binary data MIME-Version: 1.0 Message-Id: <537551449512969@web11o.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 07 Dec 2015 21:29:29 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 07.12.2015, 13:26, "Peter Stephenson" : > On Sun, 06 Dec 2015 15:08:44 -0800 > Bart Schaefer wrote: >>  On Dec 4, 9:56pm, Peter Stephenson wrote: >>  } >>  } This seems to be going the right way; let me know of any oddities or >>  } unwanted side effects. Note a few "nice" representations have changed >>  } to fit $'..' conventions. >> >>  I'll withhold judgment on whether I like this, though I must say I do >>  prefer "^C" to "\C-c". > > If this is important enough, we can arrange two versions of nicechar / > wcs_nicechar. The quickest change would be expanding the functions under > different names to take a flag when passed from mb_niceformat(), > together with a shim layer for other cases. > > (You can't seriously be complaining that "typeset -m IFS" now outputs > > IFS=$' \t\n\C-@' > > instead of raw binary, can you?) Can’t this code be somehow combined with ${(q)} rather then ${(V)}? I would really prefer if ${(q)"$(echo $'\C-c')} resulted in $'\C-c' and not in $'\003'. > >>  In any case though, this has borked two of the test scripts: > > Not sure what I can have been testing. > > pws > > diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst > index a3c5d71..2b46e06 100644 > --- a/Test/D04parameter.ztst > +++ b/Test/D04parameter.ztst > @@ -396,9 +396,9 @@ >  >Instead Here I Am Stuck By The Computer > >    foo=$'\x7f\x00' > - print ${(V)foo} > + print -r -- ${(V)foo} >  0:${(V)...} > ->^?^@ > +>\C-?\C-@ > >    foo='playing '\''stupid'\'' "games" \w\i\t\h $quoting.' >    print -r ${(q)foo} > diff --git a/Test/V09datetime.ztst b/Test/V09datetime.ztst > index 63ff4ee..831421d 100644 > --- a/Test/V09datetime.ztst > +++ b/Test/V09datetime.ztst > @@ -69,6 +69,6 @@ >  >090 >  >1 > > - print ${(V)"$(strftime $'%Y\0%m\0%d' 100000000)"} > + print -r -- ${(V)"$(strftime $'%Y\0%m\0%d' 100000000)"} >  0:Embedded nulls > ->1973^@03^@03 > +>1973\C-@03\C-@03