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

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Wed Dec 14 23:14:49 CET 2005


Hi Rich Felker!

 On 2005.12.14 at 11:32:41 -0500, Rich Felker wrote next:

> > At the moment MPlayer's locale handling is _very_ lacking, since you
> > can't change character encoding or message language at runtime.
> 
> Using setlocale will not solve the character encoding problem, or the
> message language problem.

Yes it will. If used properly, of course. Well, using gettext is much
better solution (but AFAIK it won't work without setlocale anyway), but
"%ls" argument in printf will convert (wide character) string to correct
character encoding, determined automatically by LC_CTYPE.

-- 

Vladimir




More information about the MPlayer-dev-eng mailing list