diff options
author | Mike Crute <mike@crute.us> | 2020-02-09 19:43:50 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-02-09 19:43:54 +0000 |
commit | a53b585815f9f5fe2aa63fc7a753f2657e85b365 (patch) | |
tree | 176731ce6b032577b2819c742dbb290f3163ae27 /bin | |
parent | 8ea8cac28539db68b7c904f5e8e343c91049a611 (diff) | |
download | dotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.tar.bz2 dotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.tar.xz dotfiles-a53b585815f9f5fe2aa63fc7a753f2657e85b365.zip |
viwiki: fix non-interactive encoding
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/viwiki | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||