~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-25 15:05:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1962.
  • Revision ID: john@arbash-meinel.com-20060825150557-3b0a26c2e2e7225b
Change error message text

Show diffs side-by-side

added added

removed removed

Lines of Context:
1031
1031
    try:
1032
1032
        _cached_user_encoding = locale.getpreferredencoding()
1033
1033
    except locale.Error, e:
1034
 
        sys.stderr.write('WARNING: %s\n'
1035
 
                         '  Could not determine your preferred encoding.\n'
1036
 
                         '  Usually, this is because python does not support'
1037
 
                         ' your LANG (%r)\n'
1038
 
                         "  Using 'ascii' encoding.\n"
 
1034
        sys.stderr.write('bzr: warning: %s\n'
 
1035
                         '  Could not what text encoding to use.\n'
 
1036
                         '  This error usually means your Python interpreter\n'
 
1037
                         '  doesn\'t support the locale set by $LANG (%s)\n'
 
1038
                         "  Continuing with ascii encoding.\n"
1039
1039
                         % (e, os.environ.get('LANG')))
1040
1040
 
1041
1041
    if _cached_user_encoding is None: