python-fuse icon indicating copy to clipboard operation
python-fuse copied to clipboard

Unicode paths?

Open dstromberg opened this issue 1 year ago • 0 comments

Am I correct in thinking that python-fuse uses full unicode for pathnames?

I believe that might work better on Windows and Mac than on Linux. Windows and Mac define an encoding for pathnames, but last I heard Linux didn't.

That's probably convenient for most applications, but for system software like a backup program it's probably not a good idea; there could be filenames that aren't unicode.

EG in this: https://github.com/libfuse/python-fuse/blob/master/example/hello.py hello_path = '/hello'

...hello_path probably should be (allowed to be?) b'/hello'

I believe anything in unicode can be serialized to bytes, but not everything that is bytes can be deserialized to unicode.

dstromberg avatar Mar 16 '24 16:03 dstromberg