bug-ncurses
[Top][All Lists]
Advanced

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

Re: misleading error report message


From: Thomas Dickey
Subject: Re: misleading error report message
Date: Sat, 9 Nov 2024 12:55:04 -0500

On Wed, Nov 06, 2024 at 09:59:43AM +0800, Changqing Li via Bug reports for 
ncurses, the GNU implementation of curses wrote:
> Hi, Dear maintainers
> 
> I found a misleading error report message this line, refer [1], It may
> report error like:
> 
> "...: /home/user1/.terminfo: permission denied (errno 122)", while 122 means
> "disk full".
> 
> maybe it is better not hardcode the error string,  but use something like
> strerror(errno).

It's a little more complicated than that (errno isn't necessarily set
as you expect).  I'll make some improvements.
 
> [1] 
> https://github.com/mirror/ncurses/blob/master/ncurses/tinfo/write_entry.c#L235

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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