projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4574cd6
)
Auto-decode user input to unicode
author
Aaron Bentley
<abentley@panoramicfeedback.com>
Thu, 26 Jan 2006 15:39:13 +0000
(10:39 -0500)
committer
Aaron Bentley
<abentley@panoramicfeedback.com>
Thu, 26 Jan 2006 15:39:13 +0000
(10:39 -0500)
libbe/cmdutil.py
patch
|
blob
|
history
diff --git
a/libbe/cmdutil.py
b/libbe/cmdutil.py
index ca28cdf4ac1e042cd031174c5d281fe637c31465..2f24490cdf5ee1a347a8d1c31a58d065ad990764 100644
(file)
--- 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()