Sorting it all Out Michael Kaplan's random stuff of dubious value Be sure to read the disclaimer here first!
Regular readers you can think of this as a part of the Sorting It All Out mid-term.
CompareStringW(0x0409, 0, L"Hello-Bob", -1, L"Hello Bob", -1)
which returns CSTR_GREATER_THAN, and the second is:
CompareStringW(0x0409, 0, L"-", -1, L" ", -1)
which returns CSTR_LESS_THAN.
I promise there are no "spoofing" characters or anything else unexpected in the strings, it is literally
The question -- is the difference between the two calls a bug? And if so, then which one is incorrect? And if not, then why?
Answers will be graded for accuracy, or short of that for how convincing the provided expository bullshit is, in an otherwise inaccurate answer....
(All posts will be moderated unless they do not give away the answers!)