Look a this:<br />
<br />
| $ echo -e '+\n.' | sort<br />
| .<br />
| +<br />
| $ echo -e '++\n.a' | sort<br />
| ++<br />
| .a<br />
<br />
glibc swaps '.' and '+' sort order unpredictably, so this is not a sort, but a mess.<br />
<br />
The swap is observed under all (715 ones) CentOS-6.5 locales, except : C(POSIX), ar_SA*, ko_*, ja*, km* and or* (20 ones). Given that, I have a strong belief that this is a core glibc issue, not a particular locale issue.<br />
<br />
Versions of glibc packages are : 2.12-1.132.el6.x86_64.
↧