Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

dc2020

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.
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.
dc2020

Hmm. a file name sorting bug?

I'm not sure if it's a bug or what?