Mike Frysinger | 3 Mar 2011 21:52
Picon
Favicon
Gravatar

loading new files in nano-2.3.0 messes up terminal

looks like another debugging message is sent to stderr when loading files that 
dont yet exist (multibuffer support is enabled)

to reproduce:
 - run nano
 - hit CTRL+R (to load a new file into a new buffer)
 - type in the name of a file that doesnt exist
 - see the screen get messed up due to debugging message
-mike
_______________________________________________
Nano-devel mailing list
Nano-devel <at> gnu.org
http://lists.gnu.org/mailman/listinfo/nano-devel
Chris Allegretta | 4 Mar 2011 01:57

Re: loading new files in nano-2.3.0 messes up terminal

Hey Mike,

I'm not seeing this currently, but I'm guessing it's a problem with
libmagic.  Can you capture the output of stderr during your session so
I can verify this?  I'm guessing the error message will be "something
went wrong: <something>"

On Thu, Mar 3, 2011 at 3:52 PM, Mike Frysinger <vapier <at> gentoo.org> wrote:
> looks like another debugging message is sent to stderr when loading files that
> dont yet exist (multibuffer support is enabled)
>
> to reproduce:
>  - run nano
>  - hit CTRL+R (to load a new file into a new buffer)
>  - type in the name of a file that doesnt exist
>  - see the screen get messed up due to debugging message
> -mike
>
> _______________________________________________
> Nano-devel mailing list
> Nano-devel <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/nano-devel
>
>
Mike Frysinger | 4 Mar 2011 02:05
Picon
Favicon
Gravatar

Re: loading new files in nano-2.3.0 messes up terminal

On Thursday, March 03, 2011 19:57:44 Chris Allegretta wrote:
> I'm not seeing this currently, but I'm guessing it's a problem with
> libmagic.  Can you capture the output of stderr during your session so
> I can verify this?  I'm guessing the error message will be "something
> went wrong: <something>"

inserting a file named "f" shows this at the bottom:
File to insert into new buffer [from ./] : fsomething went wrong: cannot stat 
`f' (No such file or directory) [f]
-mike
_______________________________________________
Nano-devel mailing list
Nano-devel <at> gnu.org
http://lists.gnu.org/mailman/listinfo/nano-devel
Chris Allegretta | 5 Mar 2011 06:02

Re: loading new files in nano-2.3.0 messes up terminal

I should have noticed that a lot sooner, apologies and thank you for the extra
details!  I put in a check by stat()ing the file first in r4540, I
think this should
DTRT now.

On Thu, Mar 3, 2011 at 8:05 PM, Mike Frysinger <vapier <at> gentoo.org> wrote:
> On Thursday, March 03, 2011 19:57:44 Chris Allegretta wrote:
>> I'm not seeing this currently, but I'm guessing it's a problem with
>> libmagic.  Can you capture the output of stderr during your session so
>> I can verify this?  I'm guessing the error message will be "something
>> went wrong: <something>"
>
> inserting a file named "f" shows this at the bottom:
> File to insert into new buffer [from ./] : fsomething went wrong: cannot stat
> `f' (No such file or directory) [f]
> -mike
>

Gmane