On Thu, May 04, 2006 at 08:22:17AM -0700, [EMAIL PROTECTED] wrote:
> I have discovered an inconsistency in how perl and sort handle locale.
> Here are two commands you can run in a shell ...
>
> (echo '/'; echo '?') | sort
>
> (echo '/'; echo '?') | perl -e '@x = <>; print $_ foreach sort @x'
>
> With LANG=en_US.UTF-8, sort says ? comes before /, perl says the
> opposite. Setting LC_COLLATE=C switches the sort behavior.
I have now found that this is Perl acting up. Adding "use locales"
fixes it to also sort utf differently.
Sorry for jumping the gun :-(
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / [EMAIL PROTECTED]
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils