[PATCH 6 of 6] cat: add formatter support

Yuya Nishihara yuya at tcha.org
Thu Jun 1 14:16:33 UTC 2017


On Wed, 31 May 2017 14:25:47 -0400, Augie Fackler wrote:
> On Wed, May 31, 2017 at 01:07:14AM +0900, Yuya Nishihara wrote:
> > # HG changeset patch
> > # User Yuya Nishihara <yuya at tcha.org>
> > # Date 1495716824 -32400
> > #      Thu May 25 21:53:44 2017 +0900
> > # Node ID a20184dbfeadfa5c8da9a67fecafd972d7e2202d
> > # Parent  88dd1416922eaf34fd90e2e76a3d941f9a950ba3
> > cat: add formatter support
> 
> Queued these, thanks.
> 
> Should the file contents be armored in json ouptut? IIRC json strings
> are explicitly unicode, so if we can't unicode-ify the data we're
> someone hosed, aren't we?

It's handled by encoding.toutf8b(). The file name is also arbitrary bytes
on Unix.


More information about the Mercurial-devel mailing list