[PATCH] Allow gmplayer the use of non-UTF-8 filename encoding
Hi, so far, the gmplayer cannot handle non-UTF-8 filename encoding (but set to an arbitrary locale). The patch allows the (GLib) filename encoding to be in an arbitrary locale (given by gtk environment variable G_FILENAME_ENCODING), and the GUI dialogs will display and handle these filenames correctly. Ingo
On Sun, Dec 19, 2010 at 11:50:09AM +0100, Ingo Brueckl wrote:
so far, the gmplayer cannot handle non-UTF-8 filename encoding (but set to an arbitrary locale). The patch allows the (GLib) filename encoding to be in an arbitrary locale (given by gtk environment variable G_FILENAME_ENCODING), and the GUI dialogs will display and handle these filenames correctly.
The gtk_disable_setlocale is there for a _very, very_ good reason. If you remove it MPlayer will break left and right, you will be unable to use almost all filters etc. pp.
Reimar Döffinger wrote on Sun, 19 Dec 2010 13:06:38 +0100:
The gtk_disable_setlocale is there for a _very, very_ good reason. If you remove it MPlayer will break left and right, you will be unable to use almost all filters etc. pp.
I could try whether a "surrounding" of setlocale(LC_ALL, ""); // ... utf8 stuff here setlocale(LC_ALL, "C"); would work in all the patched functions if gtk_disable_setlocale is the only issue.
participants (2)
-
Ingo Brueckl -
Reimar Döffinger