Commit 3fb62b8a authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in print_opt_full(), use strlenpt() instead of strlen(), so that tabs

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/trunk/nano@4208 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 3 deletions
+9 -3
2007-12-18 David Lawrence Ramsey <pooka109@gmail.com>
* nano.c (print_opt_full): Use strlenpt() instead of strlen(),
so that tabs are placed properly when displaying translated
strings in UTF-8, as found by Jean-Philippe Guérard.
2007-12-17 David Lawrence Ramsey <pooka109@gmail.com>
* configure.ac, doc/texinfo/nano.texi, nano.c (terminal_init):
......
......@@ -752,14 +752,14 @@ void print_opt_full(const char *shortflag
, 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment