[MPlayer-dev-eng] [PATCH] print appropriate error when failing to open a file
Dominik 'Rathann' Mierzejewski
dominik at rangers.eu.org
Tue Dec 13 11:32:12 CET 2005
On Tuesday, 13 December 2005 at 04:17, Corey Hickey wrote:
> MPlayer prints "File not found:" regardless of the actual reason it
> fails to open() a file (access denied, etc.). The attached patch makes
> MPlayer print a reason for every relevant error I found in 'man 2 open'.
>
> I've tested as many of these as I can:
> EACCES
> ELOOP
> ENAMETOOLONG
> ENXIO
> ENOENT
> ENOTDIR
>
> The rest should be fine, unless there are portability considerations I
> don't know about.
These are supposed to be already translated in glibc, so we're basically
duplicating their work. However, until we switch to gettext, I guess it's
ok to leave it as you propose.
R.
--
MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/
"I am Grey. I stand between the candle and the star. We are Grey.
We stand between the darkness ... and the light."
-- Delenn in Grey Council in Babylon 5:"Babylon Squared"
More information about the MPlayer-dev-eng
mailing list