From 36a56f2a0c412691e218b991cd01bd2fae15cdb9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 Jun 2019 11:04:33 +0000 Subject: [PATCH] [zsh] urlencode: work with non unicode input --- home/.zshrc.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index f7f647f..689ea48 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -149,7 +149,7 @@ function currency() { } function urlencode() { - python3 -c 'import urllib.parse, sys;print(urllib.parse.quote(sys.stdin.read()))' + python3 -c 'import urllib.parse; print(urllib.parse.quote(open(0, "rb").read()))' } # Program aliases/env