From aa24cfb344b1b3eaef7217d996359023cd72ba28 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 20:10:01 +0200 Subject: plan 8: fuzz decoders; fold ẞ and invalid UTF-8 correctly, refuse non-UTF-8 paths in krino new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/norm/norm_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/norm/norm_test.go') diff --git a/internal/norm/norm_test.go b/internal/norm/norm_test.go index 2fc35b6..885c6f7 100644 --- a/internal/norm/norm_test.go +++ b/internal/norm/norm_test.go @@ -12,6 +12,8 @@ func TestFold(t *testing.T) { "Łódź": "Lodz", "ZAŻÓŁĆ GĘŚLĄ JAŹŃ": "ZAZOLC GESLA JAZN", "Straße": "Strasse", + "STRAẞE": "STRASSE", + "\xf3Á": "\ufffdA", // an invalid byte must not stop the next letter folding "Øresund": "Oresund", "Ærø": "AEro", "œuvre": "oeuvre", -- cgit v1.3