mirror of
https://github.com/rclone/rclone.git
synced 2025-08-25 20:35:46 +02:00
vfs: fix cache encoding with special characters - #7760
The vfs use the hardcoded OS encoding when creating temp file, but decode it with encoding for the local filesystem (--local-encoding) when copying it to remote. This caused failures when the filenames contained special characters. The hardcoded OS encoding is now used uniformly.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user