are placed properly when displaying translated strings in UTF-8, as
found by Jean-Philippe Guérard
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4208
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
middle of the line instead of just the uncompleted part of the
match). (DLR)
- nano.c:
+ print_opt_full()
+ - Use strlenpt() instead of strlen(), so that tabs are placed
+ properly when displaying translated strings in UTF-8. (DLR,
+ found by Jean-Philippe Guérard)
version()
- Display copyright notices. (DLR)
copy_from_file()
, const char *desc)
{
printf(" %s\t", shortflag);
- if (strlen(shortflag) < 8)
+ if (strlenpt(shortflag) < 8)
printf("\t");
#ifdef HAVE_GETOPT_LONG
printf("%s\t", longflag);
- if (strlen(longflag) < 8)
+ if (strlenpt(longflag) < 8)
printf("\t\t");
- else if (strlen(longflag) < 16)
+ else if (strlenpt(longflag) < 16)
printf("\t");
#endif