Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Make ztrftime pass more things to strftime
- X-seq: zsh-workers 35726
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Make ztrftime pass more things to strftime
- Date: Wed, 8 Jul 2015 01:21:42 +0200
- 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==
- In-reply-to: <1436310900-9519-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1436310900-9519-1-git-send-email-mikachu@gmail.com>
On Wed, Jul 8, 2015 at 1:15 AM, Mikael Magnusson <mikachu@xxxxxxxxx> 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年07月08日
% print -P %D\{%Ex\}
平成27年07月08日
I guess my little case+goto should include '-' too, or it defaults
into strftime early if it's not the first modifier.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author