strncasecmp("ß", "ẞ", 2) = ?
-
-
In general, does (strncasecmp(s1,s2,n)<0) == (strncasecmp(s2,s1,n)>0) ?
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Is multibyte the main issue or is it that ß is one code point but SS is two? It seems like you’d have the same issue if you had 32-bit bytes.
-
I chose ß just because it's the first char that came to mind where length in bytes of uppercase form ẞ differs. "SS" is a distraction, not relevant here. Choosing an example from some IPA-block form where opposite-case was added later would be less confusing.
-
The fundamental problem is that strncasecmp is specified in terms of n bytes of s1, but that could require inspecting considerably more than n bytes of s2, which is highly counterintuitive and can't be antisymmetric in s1,s2.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.