~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-13 04:07:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050413040700-cd67a1265f4e8af9
- control files always in utf-8-unix format
- command line arguments interpreted as locale encoding

Show diffs side-by-side

added added

removed removed

Lines of Context:
935
935
    """Execute a command.
936
936
 
937
937
    This is similar to main(), but without all the trappings for
938
 
    logging and error handling.
 
938
    logging and error handling.  
939
939
    """
 
940
 
 
941
    import locale
 
942
    enc = locale.getpreferredencoding()
 
943
    argv = [a.decode(enc) for a in argv]
 
944
    
940
945
    try:
941
946
        args, opts = parse_args(argv[1:])
942
947
        if 'help' in opts: