diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-26 10:39:13 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-26 10:39:13 -0500 |
commit | b0645fe0c6295c70c73b44d972ab48b304043461 (patch) | |
tree | eb5190b7450ab54488a7c8a5c2c32771b5fafeb5 /libbe | |
parent | 4574cd676a02fccf64fd98c0b8e089a7f23de98f (diff) | |
download | bugseverywhere-b0645fe0c6295c70c73b44d972ab48b304043461.tar.gz |
Auto-decode user input to unicode
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/cmdutil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index ca28cdf..2f24490 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -16,6 +16,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import bugdir import plugin +import locale import os import optparse import utility @@ -98,7 +99,8 @@ def get_command(command_name): return cmd def execute(cmd, args): - return get_command(cmd).execute(args) + encoding = locale.getpreferredencoding() or 'ascii' + return get_command(cmd).execute([a.decode(encoding) for a in args]) def help(cmd): return get_command(cmd).help() |