[zsh] urlencode: work with non unicode input

This commit is contained in:
Simon Bruder 2019-06-01 11:04:33 +00:00
parent be6c0d6231
commit 36a56f2a0c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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