You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems vfsStream doesn't support multi-bytes strings for filenames. I wrote a PHPUnit test case based on it, and writing/reading files whose names contains multi-bytes characters seems erroneous, and the test case fails.
Digging in the library code, I found many single-byte *str function calls, such as substr or strlen. This should not be very hard to switch to the multi-bytes version of these functions, at least.
What is your opinion?
What about stating in the documentation that the library supports only single-bytes file names?
Thanks for your help!
Vincent
The text was updated successfully, but these errors were encountered:
I think that's something that could be improved in vfsStream. As operating system support multibyte characters in filenames, vfsStream should support this as well.
Thanks for your answer, if I find some free time, I'll try to help and provide a pull request as I have many test cases to validate changes, but immediately I can't.
Hi,
It seems vfsStream doesn't support multi-bytes strings for filenames. I wrote a PHPUnit test case based on it, and writing/reading files whose names contains multi-bytes characters seems erroneous, and the test case fails.
Digging in the library code, I found many single-byte
*str
function calls, such assubstr
orstrlen
. This should not be very hard to switch to the multi-bytes version of these functions, at least.What is your opinion?
What about stating in the documentation that the library supports only single-bytes file names?
Thanks for your help!
Vincent
The text was updated successfully, but these errors were encountered: