1 |
I doubt this is the right place to bring this up, but maybe some one |
2 |
can tell me where to go :-) |
3 |
|
4 |
I have discovered an inconsistency in how perl and sort handle locale. |
5 |
Here are two commands you can run in a shell ... |
6 |
|
7 |
(echo '/'; echo '?') | sort |
8 |
|
9 |
(echo '/'; echo '?') | perl -e '@x = <>; print $_ foreach sort @x' |
10 |
|
11 |
With LANG=en_US.UTF-8, sort says ? comes before /, perl says the |
12 |
opposite. Setting LC_COLLATE=C switches the sort behavior. I have no |
13 |
idea what else changes or where else perl and sort disagree, or what |
14 |
other programs do. |
15 |
|
16 |
Seems like something is wrong, but I don't know what. This happens on |
17 |
other versions of Linux. It is not a gentoo specific problem. |
18 |
|
19 |
-- |
20 |
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. |
21 |
Felix Finch: scarecrow repairman & rocket surgeon / felix@×××××××.com |
22 |
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 |
23 |
I've found a solution to Fermat's Last Theorem but I see I've run out of room o |
24 |
-- |
25 |
gentoo-portage-dev@g.o mailing list |