when reading color syntax names or sorting filenames, use mbstrcasecmp()

instead of strcasecmp() to compare them, in case they're UTF-8


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2734 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2005-06-19 21:10:48 +00:00
parent 483f3ac1b5
commit a62e8e3de9
3 changed files with 9 additions and 2 deletions

View File

@@ -2008,7 +2008,7 @@ int diralphasort(const void *va, const void *vb)
if (!aisdir && bisdir)
return 1;
return strcasecmp(a, b);
return mbstrcasecmp(a, b);
}
/* Free the memory allocated for array, which should contain len