From f51a5eca2eddde86f2e6e570d33aa6611a339809 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Tue, 2 Nov 2021 15:58:25 +0000
Subject: [PATCH] fstests: add encoding test for URL encoded path name #5768

Add an encoding test to make sure backends can deal with a URL encoded
path name. This is a fairly common failing in backends and has been an
intermittent problem with onedrive itself.
---
 fstest/fstests/fstests.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index 553d99eb0..34abfd815 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -658,6 +658,7 @@ func Run(t *testing.T, opt *Opt) {
 				{"trailing VT", "trailing VT\v"},
 				{"trailing dot", "trailing dot."},
 				{"invalid UTF-8", "invalid utf-8\xfe"},
+				{"URL encoding", "test%46.txt"},
 			} {
 				t.Run(test.name, func(t *testing.T) {
 					if opt.SkipInvalidUTF8 && test.name == "invalid UTF-8" {