From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22408 invoked by alias); 7 Jul 2015 23:21:47 -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: 35726 Received: (qmail 4039 invoked from network); 7 Jul 2015 23:21:46 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=eJK4cqFGn97Se3BRS/O9vrCjuTOCt+eZLLy6sSwROSU=; b=StpDm4KOlp39RcS242HgFbJvmxKXwww26s7Me2HJn+jSs2nL21I5+9Gv3zfcCtx3iR qM47XkIn+GyKeFsSYfzUNzADPPM3DHHvD4GLwRcsB9mJWIw4oWpKWUOI5785N3+2ylly ZhnzG9PW6VDgwubT569FaTecZIgpchl1jUdMBfD4oPZwvutS8SOl9Xh+yramKu8D7wfI RhHtAxZYoohfHxP/EIvIBYk5k7srhainRwnCSjIV2bc26SS4T0EYBfAXBmbK8PLbuE94 3EM/T/eqXmzjfnOlpjwjPMG4GaUHSMk4Kdq+wDHSajb1xVpl4+Rp8yQwWqIb5qDpAU1v RuUg== MIME-Version: 1.0 X-Received: by 10.50.114.5 with SMTP id jc5mr54947437igb.43.1436311302754; Tue, 07 Jul 2015 16:21:42 -0700 (PDT) In-Reply-To: <1436310900-9519-1-git-send-email-mikachu@gmail.com> References: <1436310900-9519-1-git-send-email-mikachu@gmail.com> Date: Wed, 8 Jul 2015 01:21:42 +0200 Message-ID: Subject: Re: PATCH: Make ztrftime pass more things to strftime From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jul 8, 2015 at 1:15 AM, Mikael Magnusson wrote: > I poked at this for an hour, and this is the first version that passes > make check and doesn't segfault randomly, so it is not very well tested, > to say the least. Opinions on the approach? Hey look, it actually works too, % print -P %D\{%x\} 2015=E5=B9=B407=E6=9C=8808=E6=97=A5 % print -P %D\{%Ex\} =E5=B9=B3=E6=88=9027=E5=B9=B407=E6=9C=8808=E6=97=A5 I guess my little case+goto should include '-' too, or it defaults into strftime early if it's not the first modifier. --=20 Mikael Magnusson