~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-18 03:15:03 UTC
  • mfrom: (5785.1.6 undecodable_argv_745712)
  • Revision ID: pqm@pqm.ubuntu.com-20110418031503-x95t7v5ujr0lh9yw
(mbp) better message when argv can't be decoded in the application locale
 (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        user_encoding = get_user_encoding()
97
97
        return [a.decode(user_encoding) for a in sys.argv[1:]]
98
98
    except UnicodeDecodeError:
99
 
        raise errors.BzrError(("Parameter '%r' is unsupported by the current "
100
 
                                                            "encoding." % a))
 
99
        raise errors.BzrError("Parameter %r encoding is unsupported by %s "
 
100
            "application locale." % (a, user_encoding))
101
101
 
102
102
 
103
103
def make_readonly(filename):