version-info --include-history UnicodeDecodeError (518609)

Eric Siegerman lists08-bzr at davor.org
Fri Apr 9 03:49:11 BST 2010


On Fri, 2010-04-09 at 09:00 +1000, Robert Collins wrote:
> perhaps we could make the formatter 'know' that
> it is writing to stdout[,] and error unless stdout is a pipe (and thus
> presumably being redirected).

A safer test would be (the python spelling of) isatty(3).

> That seems fragile though.

On the other hand, there's precedent for it.  "ls", "more"
and "less" all vary their behaviour depending on whether
stdout is a tty.

  - Eric





More information about the bazaar mailing list