From 847d899c197b7cb010d965d23cc0b285f841ab31 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 24 Apr 2014 17:45:03 +0200 Subject: force utf8 output charset for everything except help text --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 80f31e0a..e35db87a 100644 --- a/main.c +++ b/main.c @@ -86,6 +86,7 @@ char use_gui_plugin[100]; static void print_help (void) { + bind_textdomain_codeset (PACKAGE, ""); fprintf (stdout, _("Usage: deadbeef [options] [--] [file(s)]\n")); fprintf (stdout, _("Options:\n")); fprintf (stdout, _(" --help or -h Print help (this message) and exit\n")); @@ -107,6 +108,7 @@ print_help (void) { " copy[r]ight, [e]lapsed\n")); fprintf (stdout, _(" e.g.: --nowplaying \"%%a - %%t\" should print \"artist - title\"\n")); fprintf (stdout, _(" for more info, see http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Title_Formatting\n")); + bind_textdomain_codeset (PACKAGE, "UTF-8"); } // Parse command line an return a single buffer with all @@ -774,6 +776,7 @@ main (int argc, char *argv[]) { else { bindtextdomain (PACKAGE, LOCALEDIR); } + bind_textdomain_codeset (PACKAGE, "UTF-8"); textdomain (PACKAGE); #endif -- cgit v1.2.3