~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: bialix at ukr
  • Date: 2007-09-03 12:53:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2800.
  • Revision ID: bialix@ukr.net-20070903125357-hy1wzy0wv1exq5uv
bugfix for #131100

Show diffs side-by-side

added added

removed removed

Lines of Context:
447
447
 
448
448
        output_encoding = osutils.get_terminal_encoding()
449
449
 
450
 
        # use 'replace' so that we don't abort if trying to write out
451
 
        # in e.g. the default C locale.
452
 
        self.outf = codecs.getwriter(output_encoding)(sys.stdout, errors=self.encoding_type)
 
450
        self.outf = codecs.getwriter(output_encoding)(sys.stdout,
 
451
                                        errors=self.encoding_type)
453
452
        # For whatever reason codecs.getwriter() does not advertise its encoding
454
453
        # it just returns the encoding of the wrapped file, which is completely
455
454
        # bogus. So set the attribute, so we can find the correct encoding later.
720
719
        return 0
721
720
 
722
721
    if argv[0] == '--version':
723
 
        from bzrlib.version import show_version
724
 
        show_version()
 
722
        from bzrlib.builtins import cmd_version
 
723
        cmd_version().run_argv_aliases([])
725
724
        return 0
726
725
        
727
726
    if not opt_no_plugins: