diff --git a/lib/encoder/internal/gen/main.go b/lib/encoder/internal/gen/main.go index 23e3777e2..6159fd909 100644 --- a/lib/encoder/internal/gen/main.go +++ b/lib/encoder/internal/gen/main.go @@ -229,8 +229,8 @@ func main() { fatalW(fd.WriteString(" "))("Write:") } in, out := buildTestString( - []mapping{getMapping(m.mask)}, // pick - []mapping{getMapping(encoder.EncodeZero)}, // quote + []mapping{getMapping(m.mask)}, // pick + []mapping{getMapping(encoder.EncodeZero)}, // quote printables, fullwidthPrintables, encodables, encoded, greek) // fill fatalW(fmt.Fprintf(fd, `{ // %d mask: %s, diff --git a/vfs/vfscache/cache.go b/vfs/vfscache/cache.go index 0856587d4..3d34dd82a 100644 --- a/vfs/vfscache/cache.go +++ b/vfs/vfscache/cache.go @@ -212,7 +212,7 @@ func (c *Cache) createItemDir(name string) (string, error) { // getBackend gets a backend for a cache root dir func getBackend(ctx context.Context, parentPath string, name string, relativeDirPath string) (fs.Fs, error) { - path := fmt.Sprintf("%s/%s/%s", parentPath, name, relativeDirPath) + path := fmt.Sprintf(":local,encoding='%v':%s/%s/%s", encoder.OS, parentPath, name, relativeDirPath) return fscache.Get(ctx, path) }