[zsh] urlencode: work with non unicode input

legacy
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
1 changed files with 1 additions and 1 deletions

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