okio icon indicating copy to clipboard operation
okio copied to clipboard

Support non-UTF-8 paths in FileSystem

Open swankjesse opened this issue 3 years ago • 0 comments

We’ve designed Path to support this, but we don’t have tests that exercise it, and I don’t have confidence it’ll actually work.

In particular:

  • Native: Kotlin’s built-in C bindings do implicit UTF-8 encoding and decoding. We need alternate APIs to access other encodings.
  • JVM: the JVM’s java.io and java.nio.file APIs use Java Strings. Presumably these are broken on exotic file paths?
  • JS: the Node API we’re using uses JavaScript Strings. Presumably these are also broken by exotic file paths.

swankjesse avatar Jan 16 '21 15:01 swankjesse