awk's asort sort order according to locale
How could it be possible to make awk asort function to be locale-aware?
Systems locale is set to lv_LV, but asort ignores it and sorts as if LC_COLLATE is en_US. Text to be sorted is ISO8859-13 encoded.
output of locale:
malfunctioning part of script:
How about sample data and sample output?
I'll better attach the script and the input file.
it should be used so: sinon.sh -s tabula.txt
the last line of current output looks so:
(sorry, comments in script are in Latvian)
As far as it seems to me after studying of the source - gawk's asort() function is not locale-aware. At least - I did not notice any code comparable to sort's from coreutils.
a feature request?
|All times are GMT -5. The time now is 09:10 AM.|