stefano federici <[EMAIL PROTECTED]> wrote: > It seems that the -f option (that is the "ignore-case" option) of sort doesn't > work with accented characters. For example the following command > > sort -f -k1 input.txt > output.txt > > where input.txt contains: > > � 1 > � 2 > � 3 > > will output the following output.txt file: > > � 1 > � 2 > � 3 > > instead of the expected: > > � 2 > � 1 > � 3
What version of sort are you using? (run `sort --version') What locale are you using? (run `locale') The locale you use determines how bytes are ordered. There are a few questions in the FAQ that should help you: http://www.gnu.org/software/fileutils/doc/faq/core-utils-faq.html It works fine for me using the latest version and with an appropriate locale settings: $ env LC_ALL=fr_FR sort -f < in � 2 � 1 � 3 If I use the default (C) locale, I get the result that you didn't expect: $ sort -f < in � 1 � 2 � 3 _______________________________________________ Bug-textutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-textutils
