in reply to Re^3: Difference in sort order between Solaris and Linux
in thread Difference in sort order between Solaris and Linux

Now it would be interesting to see whether the commandline sort behaves similar. Put the words in a file per line and do a LANG=C sort file on both machines.

McA

Replies are listed 'Best First'.
Re^5: Difference in sort order between Solaris and Linux
by lpwevers (Acolyte) on Mar 05, 2014 at 14:59 UTC
    Hi,

    Interesting test indeed. The result is exactly the same as it is when using Perl. So I expect one of the two OS-es not playing nicely with the standards.

      Hmm, so it seems that the sorting order of the C locale is different. That is weird. But gives you the chance to search in Google for sorting differences between Linux and Solaris independent of Perl. ;-)

      I would look at the bunch of environment variables whether there are some which have higher precedence so that the tests done so far pointed us into the wrong direction.

      The best for your research
      McA

        Hi, Thanks. You're right, it seems that independent of Perl Solaris and Linux behave differently. I guess I'll just have to live with it then and use the suggestion of using the Schwartzian Transform. Louis