[MPlayer-dev-eng] Re: [PATCH] print appropriate error when failing to open a file

Paul TT paultt at hackerjournal.it
Tue Dec 13 19:55:38 CET 2005


On Tue, 13 Dec 2005 16:14:49 +0100
Alban Bedel <albeu at free.fr> wrote:

> On Tue, 13 Dec 2005 11:32:12 +0100
> Dominik 'Rathann' Mierzejewski <dominik at rangers.eu.org> wrote:
...
> > 
> > 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.
> 
> imho this is too specific. It would be better to implement something
like
> mp_strerror() and (for this particular case) use msg like:
> "Failed to open %s: %s", file, mp_strerror(errno).
> Such function would be more usefull overall as it could then be used
in
> lots of places where strerror() is already used.
> 
agree :-)




More information about the MPlayer-dev-eng mailing list