diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-08-10 14:19:35 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-08-11 11:59:21 +0200 |
commit | dae296c8c0ea9f1f28eb1e4545cf9dd3e459c7ae (patch) | |
tree | d13d1a1abb2667d2423c7d6b8c4040edc50550b8 /tests | |
parent | 7e9dd614c58b6a4b00e3326c57ec75f0da68ec13 (diff) | |
download | pinentry-rofi-dae296c8c0ea9f1f28eb1e4545cf9dd3e459c7ae.tar.gz |
fix: fix the logic of encoding/decoding of the strings.
It must be first decoded to the plain UTF-8 string, and only then
bastard-encoded for the Assuan protocol.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/foundational.bats | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/foundational.bats b/tests/foundational.bats index 7c69969..4507d38 100644 --- a/tests/foundational.bats +++ b/tests/foundational.bats @@ -58,7 +58,7 @@ created 2016-04-27 (main key ID 79205802880BC9D8)." EOF log_debug "expected: ${expected}" log_debug "instr: ${instr}" - observed=$(basturldecode "${instr}") + observed=$(basturlencode "${instr}") log_debug "observed: ${observed}" [[ "$observed" == "$expected" ]] || diff -u <(echo "$observed") <(printf "%s" "$expected") } |