nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] nano 2.0.7pre2 is out


From: David Ramsey
Subject: Re: [Nano-devel] nano 2.0.7pre2 is out
Date: Tue, 18 Dec 2007 16:02:19 -0600

On Dec 18, 2007 3:26 PM, Jean-Philippe Guérard
<address@hidden> wrote:

<snip>

> There's a small bug in the code managing the output of nano --help.
>
> With a system using a French UTF-8 locale, I get:
>
>  -p             --preserve              Préserver ^Q (XON) & ^S (XOFF)
>  -r <numéro>    --fill=<numéro> Colonne de passage à la ligne
>  -s <prog>      --speller=<prog>        Correcteur orthographique
>
> Instead of:
>
>  -p             --preserve              Préserver ^Q (XON) & ^S (XOFF)
>  -r <numéro>    --fill=<numéro>         Colonne de passage à la ligne
>  -s <prog>      --speller=<prog>        Correcteur orthographique
>
> From the source code, the problem seems to be that the string length
> of "--fill=<numéro>" as reported by strlen is 16, while the real
> length is 15. As nano checks if the value return by strlen is < 16 to
> add an additional tab, no tab is added while one would be necessary.

Good catch!  It should be using strlenpt() instead of strlen().  I've
fixed it in CVS.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]