Skip to content

Commit 0c5fcfa

Browse files
committed
Fix copying of remote files with Python 3
This closes LP #1313112
1 parent 2d42e72 commit 0c5fcfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcecodebrowser/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def _load_active_document_symbols(self):
413413
contents = document.get_text(document.get_start_iter(),
414414
document.get_end_iter(),
415415
True)
416-
os.write(fd, contents)
416+
os.write(fd, bytes(contents, 'UTF-8'))
417417
os.close(fd)
418418
while Gtk.events_pending():
419419
Gtk.main_iteration()

0 commit comments

Comments
 (0)