Closed tiopex closed 6 months ago
Hello, On which CPU / machine is running the uMTP daemon ? Is it a big-endian system ? And which Linux it is ?
Hello, On which CPU / machine is running the uMTP daemon ? Is it a big-endian system ? And which Linux it is ?
ARM926EJ-S (ARMv5TE) little-endian, kernel 5.15, buildroot 2022.02.9
Ok i see what probably cause the issue : ARMv5 doesn't support unaligned memory accesses... unicode2charstring use short accesses to read the unicode words, and high and low bytes are swapped on this CPU and generate these bad characters. I will change this function to fix this.
@tiopex : I have pushed a possible fix on the master branch. Please try it and let me know if this fix the issue.
Works! Thank you.
While creating a folder it returns Chinese characters. It only works correctly when moving/copying files from outside.
It happens on Windows 10 and 11.
below are debug logs from create "test" directory. There is "test" in the payload but in "build_full_path" unexpected Chinese characters.