nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 6cd96f612d8d284c47e17a0887a752a2b92b1e7c
parent 6baa0ded06a99443d36dac7cb1684ebea11e60e8
Author: Daniel Hsu <danielhsu@gmail.com>
Date:   Tue, 25 Jul 2017 14:59:25 -0400

fix pipe to external command

Diffstat:
Msimplenote_cli/sncli.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/simplenote_cli/sncli.py b/simplenote_cli/sncli.py @@ -392,7 +392,7 @@ def gui_pipe_input(self, args, cmd): try: self.gui_clear() pipe = subprocess.Popen(cmd, stdin=subprocess.PIPE, shell=True) - pipe.communicate(note['content']) + pipe.communicate(note['content'].encode('utf-8')) pipe.stdin.close() pipe.wait() except OSError as e: