[MPlayer-dev-eng] [PATCH] Use _NET_WM_NAME for UTF-8 title in X11 if supported

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jun 20 22:17:13 CEST 2006


Hi,
On Tue, Jun 20, 2006 at 11:10:21PM +0300, Uoti Urpala wrote:
> though. Assuming the filenames are in utf-8 is about the same as
> assuming mp_msg_charset (the charset messages are converted to when
> output) is always utf-8.

I think it's even more complicated. Can't the filesystem (or more
precisely the file I/O functions) use a different encoding then the
terminal?
If I am right, my idea for the final solution would be converting the
strings on the command line to UTF-8 when parsing, and if necessary
convert once again on open.
In this case, the latest proposed patch would be correct with adding
unneeded bloat.
Either way, setlocale is not acceptable since it will break at least
binary loader. I personally don't have a problem with declaring
non-UTF-8 systems in general as broken, whoever wants something else is
free to provide suggestions.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list