From 6bb7d79ddc05578cfa4a77a133250ed540ae71fa Mon Sep 17 00:00:00 2001 From: SanketDG Date: Sun, 7 Jun 2015 00:02:48 +0530 Subject: [PATCH] change encoding of return statement to utf8 --- thefuck/shells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 81a657be..97018169 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -105,7 +105,7 @@ class Fish(Generic): aliases = self.get_aliases() binary = command_script.split(' ')[0] if binary in aliases: - return 'fish -ic "{}"'.format(command_script.replace('"', r'\"')) + return 'fish -ic "{}"'.format(command_script.replace('"', r'\"')).encode('utf8') else: return command_script