Aspects of a locale-sensitive operation can be modified by using a locale modifier. The output of the locale command is:
system % locale LANG=ko_KR.EUC LC_CTYPE="ko_KR.EUC" LC_NUMERIC="ko_KR.EUC" LC_TIME="ko_KR.EUC" LC_COLLATE="ko_KR.EUC" LC_MONETARY="ko_KR.EUC" LC_MESSAGES="ko_KR.EUC" LC_ALL=ko_KR.EUC |
system % cat data_file |
If you sort the data_file, the sort result is:
system % sort data_file |
In this case, the text is sorted on the code point value of each character defined in the current locale, ko (ko_KR.EUC). This might not be the desired result.
The Solaris operating environment provides a locale modifier. You can modify the behavior of sort by changing the current locale from ko to ko_KR.EUC@dict as shown:
system % env LANG=ko_KR.EUC@dict sort data_file |