--- a/ThirdParty/Pygments/pygments/cmdline.py Mon Mar 12 19:01:48 2012 +0100 +++ b/ThirdParty/Pygments/pygments/cmdline.py Mon Mar 12 19:03:42 2012 +0100 @@ -5,7 +5,7 @@ Command line interface. - :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import sys @@ -219,7 +219,7 @@ return 0 if opts.pop('-V', None) is not None: - print('Pygments version %s, (c) 2006-2008 by Georg Brandl.' % __version__) + print('Pygments version %s, (c) 2006-2011 by Georg Brandl.' % __version__) return 0 # handle ``pygmentize -L`` @@ -408,6 +408,9 @@ None) or 'ascii' fmter.encoding = getattr(sys.stdout, 'encoding', None) or 'ascii' + elif not outfn and sys.version_info > (3,): + # output to terminal with encoding -> use .buffer + outfile = sys.stdout.buffer # ... and do it! try: