~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Alexander Belchenko
  • Date: 2007-09-04 11:00:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2800.
  • Revision ID: bialix@ukr.net-20070904110030-pma21wbsylstkdnv
support for non-ascii BZR_HOME in show_version()

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    else:
55
55
        print >>to_file, bzrlib.__path__[0]
56
56
    if show_config:
57
 
        print >>to_file, "  Bazaar configuration:", config.config_dir()
 
57
        config_dir = os.path.normpath(config.config_dir())  # use native slashes
 
58
        if not isinstance(config_dir, unicode):
 
59
            config_dir = config_dir.decode(bzrlib.user_encoding)
 
60
        print >>to_file, "  Bazaar configuration:", config_dir
58
61
        print >>to_file, "  Bazaar log file:", trace._bzr_log_filename
59
62
    if show_copyright:
60
63
        print >>to_file