> On 26 Nov 2017, at 13:43, k...@keldix.com wrote: > > Well, the pathname processing should be a function of the filesystem. Eg if > you have a windows > filesystem, or an apple filesystem mounted on a linux operating system, then > the file names > of the foreign system should be interpreted as for the originating system in > question. > I am not sure of the encoding of filenemes on windows and apple system, but > their modern > default character encoding is utf-16.
The deprecated HFS uses UTF-16, but MacOS has LC_CTYPE=UTF-8; thus with no additional qualifications like in LC_CTYPE=en_US.UTF-8. It would be interesting to know if it is POSIX conforming, as it causes confusion with some software.