Subject: bug#32472: sort doesn't sort and uniq loses data for many non-Latin scripts on UTF-8 locales

From: Paul Eggert <[email-masked]>
Date: Sat, 18 Aug 2018 10:34:31 -0700

Vaayda Yaasra wrote:
> Here’s an example in Syriac:
> 
> ܡܠܬܐ
> ܒܝܬܐ
> ܒܪܢܫܐ
> ܡܠܬܐ
> 
> Sort produces the following:
> 
> ܡܠܬܐ
> ܒܝܬܐ
> ܡܠܬܐ
> ܒܪܢܫܐ

This is a property of your locale, so I suggest sending a bug report to whoever 
maintains your locale. You should be able to reproduce the problem by bypassing 
GNU 'sort' entirely and using the C strcoll function.

For what it's worth, I observe the problem on Ubuntu 18.04 but not on Fedora 28. 
As Fedora tends to be more up-to-date, perhaps the problem is fixed already in 
glibc.