From dae296c8c0ea9f1f28eb1e4545cf9dd3e459c7ae Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 10 Aug 2023 14:19:35 +0200 Subject: 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. --- tests/foundational.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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") } -- cgit