summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-02-09 19:43:50 +0000
committerMike Crute <mike@crute.us>2020-02-09 19:43:54 +0000
commita53b585815f9f5fe2aa63fc7a753f2657e85b365 (patch)
tree176731ce6b032577b2819c742dbb290f3163ae27 /bin
parent8ea8cac28539db68b7c904f5e8e343c91049a611 (diff)
downloaddotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.tar.bz2
dotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.tar.xz
dotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.zip
viwiki: fix non-interactive encoding
Diffstat (limited to 'bin')
-rwxr-xr-xbin/viwiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/viwiki b/bin/viwiki
index 571e816..84b0dbc 100755
--- a/bin/viwiki
+++ b/bin/viwiki
@@ -290,7 +290,7 @@ class NonInteractiveEditor(WikiEditor):
290 if input: 290 if input:
291 self.api.put_page(args[0], input.read().decode("utf-8")) 291 self.api.put_page(args[0], input.read().decode("utf-8"))
292 else: 292 else:
293 sys.stdout.write(self.api.get_page(args[0])) 293 sys.stdout.write(self.api.get_page(args[0]).encode("utf-8"))
294 sys.stdout.flush() 294 sys.stdout.flush()
295 295
296 296