[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is necessary and sufficient to let 'sort' sort as if strcmp in C is
From: |
Peng Yu |
Subject: |
What is necessary and sufficient to let 'sort' sort as if strcmp in C is used? |
Date: |
Sat, 1 Feb 2014 12:15:01 -0600 |
Hi,
man sort says "Set LC_ALL=C to get the traditional sort order that
uses native byte values."
man comm says "Note, comparisons honor the rules specified by 'LC_COLLATE'."
My test shows that it seems LC_COLLATE=C is sufficient to make sort
using native byte values. Is it so?
--
Regards,
Peng
- What is necessary and sufficient to let 'sort' sort as if strcmp in C is used?,
Peng Yu <=