summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-24 17:45:03 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-24 17:45:03 +0200
commit847d899c197b7cb010d965d23cc0b285f841ab31 (patch)
tree9d6fb46ddcc6075d1e4f99dff0ac8c2d30133cfe /main.c
parent45a4e4eff36a7e5f2670bfb2280ee1563fd86319 (diff)
force utf8 output charset for everything except help text
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
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