bug#42986: sort: possible bug when sorting special characters

2020-08-22 Thread Wolter H. V.
Hello Eric, Thank you very much for your reply. Indeed it doesn't look like a bug. Thank you for the explanation! Regards, Wolter H. V.

bug#42986: sort: possible bug when sorting special characters

2020-08-22 Thread Eric Blake
tag 42986 notabug thanks On 8/22/20 6:46 AM, Wolter H. V. wrote: The following commands: echo 'Pará,9\nParacito,0' | sort --field-separator=, -k1 Use of echo with \ is non-portable, more portable is to use printf. and echo 'Pará,Z\nParacito,A' | sort --field-separator=, -k1 Us

bug#42986: sort: possible bug when sorting special characters

2020-08-22 Thread Wolter H. V.
The following commands: echo 'Pará,9\nParacito,0' | sort --field-separator=, -k1 and echo 'Pará,Z\nParacito,A' | sort --field-separator=, -k1 give Pará,9 Paracito,0 and Paracito,A Pará,Z respectively. Sorting the string 'á\na' results in 'a\ná', so I would expect th