Hmm. a file name sorting bug?

Advertisement

Advertisement

dc2020

Re: Hmm. a file name sorting bug?

Thank you, if fixed it.
Although it is still a bug. For the "natural number sorting" those numbers must be separated by a whitespace.

Reply with quote

dc2020
Joined:
Posts:
6

Re: Hmm. a file name sorting bug?

Wow, that's crazy. Microsoft indeed uses StrCmpLogicalW in Explorer in Windows 10. And it produces very funky results.

The issue is that on Linux, say scandir() doesn't use that weird sorting by default. So if someone uses WinSCP to connect to a Linux file system they will get very inconsistent results because of this weird Windows-centric sorting.

PS. BTW, Microsoft themselves recommend to use a totally different set of APIs for sorting, i.e CompareStringOrdinal for NTFS file names.

Reply with quote

Advertisement

You can post new topics in this forum