~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-14 23:43:01 UTC
  • Revision ID: mbp@sourcefrog.net-20050414234300-57f6e8b8514287e4
- factor out locale.getpreferredencoding()
- fix problems with EMAIL not being defined

Show diffs side-by-side

added added

removed removed

Lines of Context:
936
936
    logging and error handling.  
937
937
    """
938
938
 
939
 
    import locale
940
 
    enc = locale.getpreferredencoding()
941
 
    argv = [a.decode(enc) for a in argv]
 
939
    argv = [a.decode(bzrlib.user_encoding) for a in argv]
942
940
    
943
941
    try:
944
942
        args, opts = parse_args(argv[1:])