Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And that's why there are a hundred different possible values for LC_COLLATE, and it's completely normal that two popular Unix distributions picked different default values for that setting...right?

It would have been reasonable to conclude the article a third of the way through, and say "sorting is locale-dependent, if what you value is consistent behaviour between different OSs (instead of sorting based on the user's preferences) you need to implement the sorting yourself."



LC_ALL=C which gives you consistent sorting behavior.

The article does mention it but in passing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: