[gedit] Gio.guess_content_type wants an utf-8 string
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Gio.guess_content_type wants an utf-8 string
- Date: Tue, 2 Apr 2013 21:39:11 +0000 (UTC)
commit f539ab0a9c93b8b2b0c1823460e578ab18fcd3e8
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Apr 2 23:34:03 2013 +0200
Gio.guess_content_type wants an utf-8 string
plugins/externaltools/tools/functions.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/externaltools/tools/functions.py b/plugins/externaltools/tools/functions.py
index 8b394c2..32fd3c6 100644
--- a/plugins/externaltools/tools/functions.py
+++ b/plugins/externaltools/tools/functions.py
@@ -273,7 +273,7 @@ def capture_end_execute_panel(capture, exit_code, panel, view, output_type):
end.forward_chars(300)
uri = ''
- mtype, uncertain = Gio.content_type_guess(None, doc.get_text(start, end, False))
+ mtype, uncertain = Gio.content_type_guess(None, doc.get_text(start, end, False).encode('utf-8'))
lmanager = GtkSource.LanguageManager.get_default()
location = doc.get_location()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]