Hi, developer.

I found a bug in `ls` command of fileutils-4.0w packet.
This command make wrong sorting filenames with russian symbols.
Patch included.

WBR,
Yuri Kozlov
--- /test/fileutils-4.0w/src/ls.c       Fri Jun 16 12:49:41 2000
+++ /test/fu/ls.c       Sat Jul 22 17:24:33 2000
@@ -2146,13 +2146,13 @@
 static int
 compare_name (const struct fileinfo *file1, const struct fileinfo *file2)
 {
-  return strcmp (file1->name, file2->name);
+  return strcoll (file1->name, file2->name);
 }
 
 static int
 rev_cmp_name (const struct fileinfo *file2, const struct fileinfo *file1)
 {
-  return strcmp (file1->name, file2->name);
+  return strcoll (file1->name, file2->name);
 }
 
 /* Compare file extensions.  Files with no extension are `smallest'.

Reply via email to