jgit programs: Use i18n.logOutputEncoding or user's locale for output
commit4a23e50307fdb52675990aa997756b44081900d4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 12 Oct 2008 22:50:58 +0000 (13 00:50 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 13 Oct 2008 02:37:13 +0000 (12 19:37 -0700)
treeaccb7302b92e7c60cc4765344288b2efbd2edd42
parent8a4a9f36a3a7c7c2543405b2654a788029004940
jgit programs: Use i18n.logOutputEncoding or user's locale for output

We should present the data in the user's locale to make it readable.

This prevents garbage from being displayed for user's whose locale
is not UTF-8, when non-ascii appears in most cases. If the characters
cannot be converted garbage will appear in any case.

When jgit gains the capability to present blob data this code must
be replaced to handle data and metadata differently.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/TextBuiltin.java