[MPlayer-dev-eng] [PATCH] GTK2 support

Torinthiel torinthiel at megapolis.pl
Mon Feb 20 23:08:57 CET 2006


On Mon, Feb 20, 2006 at 11:01:38AM +0100, Adam Tla/lka wrote:
> It is is the correct way and of course all messagess should be in UTF-8
> format or must have information about encoding included so iconv function
> can recode text to the desired encoding depending of output mode -
> terminal or gtk internal representation.

More or less they have that information - stored in help/*.charset
files. It's not easily available during runtime though. But there's the
--charset option to ./configure if one needs it. And I oppose
hard-coding utf-8 by default, as it breaks any non-english non-utf8
messages, which are working perfectly now.
Unless someone comes with a way to do it correctly, i.e. making gtk1,
gtk2, utf-8 consoles and non-utf consoles working. The gettext might be
a way. There is code to convert .h files to gettext's .po files, I'll
send it on request, all that is left is integrating it into configure.
The call to gettext is already there (in mp_msg.c), as are ones to
{bind,}textdomain.  Other thing that would be very nice (especially
considering how much we propagate CVS version) is to make it work with
.mo files made directly in source tree, without need to 'make install'.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060220/52587c98/attachment.pgp>


More information about the MPlayer-dev-eng mailing list