- Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a
compilation problem when --enable-nanorc isn't used and
--enable-extra is. (DLR)
+- color.c:
+ update_color()
+ - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
+ color syntax names are properly detected. (DLR)
- cut.c:
cut_line()
- Set placewewant properly after cutting a line, to avoid a
- Since lineswritten is a size_t, print its value as an unsigned
long instead of an unsigned int. (DLR)
- Declare the size_t i only in the loop where it's used. (DLR)
+ diralphasort()
+ - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8
+ filenames are sorted properly. (DLR)
cwd_tab_completion(), browser_init()
- Rename variable next to nextdir to avoid confusion. (DLR)
input_tab()
if (colorstrings == NULL && syntaxstr != NULL) {
for (tmpsyntax = syntaxes; tmpsyntax != NULL;
tmpsyntax = tmpsyntax->next) {
- if (strcasecmp(tmpsyntax->desc, syntaxstr) == 0)
+ if (mbstrcasecmp(tmpsyntax->desc, syntaxstr) == 0)
colorstrings = tmpsyntax->color;
}
}
if (!aisdir && bisdir)
return 1;
- return strcasecmp(a, b);
+ return mbstrcasecmp(a, b);
}
/* Free the memory allocated for array, which should contain len