Paul Clapham wrote:. . . Indeed it should. . . .
Just because it looks like a μ, and μ definitely has an upper‑case equivalent doesn't mean the micro sign should have an upper‑case equivalent. The Unicode chart doesn't say that U+00B5 has an upper‑case equivalent but it does mention μ, The
Greek chart has μ and Μ almost next to each other, so if you know, it is obvious that they are intended to be paired like that. The names also include CAPITAL and SMALL, which are the names I learnt as a little schoolboy.
Let's try it on JShell:-
jshell> String s1 = "\u00b5";
s1 ==> "µ"
jshell> String s2 = "\u03bc";
s2 ==> "μ"
jshell> String.CASE_INSENSITIVE_ORDER.compare(s1, s2);
$3 ==> 0
jshell> s1.compareTo(s2);
$4 ==> -775
I think they have read something into Unicode that isn't in Unicode in the first place.
not locale-sensitive . . . basically obsolete . . . .
The
documentation for CASE_INSENSITIVE_ORDER recommends using a
Collator.