466,467c466,467 < -s, --stable stabilize sort by disabling last-resort comparison\ < \n\ --- > -P, --posix-simple use POSIX locale (simple byte-value) comparisons\n\ > -s, --stable stabilize sort by disabling last-resort comparison\n\ 503c503,504 < Set LC_ALL=C to get the traditional sort order that uses\n\ --- > The -P option overrides the locale with the portable POSIX\n\ > locale. Use -P to get the traditional sort order that uses\n\ 526c527 < static char const short_options[] = "-bcCdfghik:mMno:rRsS:t:T:uVy:z"; --- > static char const short_options[] = "-bcCdfghik:mMno:PrRsS:t:T:uVy:z"; 548a550 > {"posix-simple", no_argument, NULL, 'P'}, 4076a4079 > char posix_simple_ordering = 0; 4372a4376,4379 > case 'P': > posix_simple_ordering = 1; > break; > 4545a4553,4563 > /* temporarily set locale to "POSIX" */ > if (posix_simple_ordering){ > setlocale(LC_ALL, "POSIX"); > hard_LC_COLLATE = hard_locale (LC_COLLATE); > #if HAVE_NL_LANGINFO > hard_LC_TIME = hard_locale (LC_TIME); > #endif > decimal_point = '.'; > thousands_sep = -1; > } > 4631a4650,4654 > > if (posix_simple_ordering){ > /* Restore caller's locale. */ > setlocale(LC_ALL, ""); > }