At least under the Japanese version of MS-DOS, apparently it is very possible for file name components to contain e.g. a "backslash" byte element ('\x5c'), if it occurs as part of a multi-byte character sequence.
realpath (...) and _stat_r (...) should really be updated to handle such cases. Rather than just looking at each byte individually as a character, they should take into account the active DOS code page.
Functions in libi86 should probably also be updated.
At least under the Japanese version of MS-DOS, apparently it is very possible for file name components to contain e.g. a "backslash" byte element (
'\x5c'
), if it occurs as part of a multi-byte character sequence.realpath (
...)
and_stat_r (
...)
should really be updated to handle such cases. Rather than just looking at each byte individually as a character, they should take into account the active DOS code page.Functions in
libi86
should probably also be updated.