From: Kalle Wallin Date: Fri, 19 Mar 2004 19:16:35 +0000 (+0000) Subject: Initialize charset before starting curses. X-Git-Tag: v0.12_alpha1~689 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4b2a21ad721f9b2e23bd9956fb56c5959c7482a;p=ncmpc.git Initialize charset before starting curses. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@309 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/main.c b/main.c index e915322..c3c6687 100644 --- a/main.c +++ b/main.c @@ -22,6 +22,7 @@ void exit_and_cleanup(void) { screen_exit(); + charset_close(); if( mpc ) { if( mpc_error(mpc) ) @@ -48,6 +49,10 @@ main(int argc, char *argv[]) options_init(); options = options_parse(argc, argv); + /* initialize local charset */ + if( charset_init() ) + exit(EXIT_FAILURE); + /* setup signal behavior - SIGINT */ sigemptyset( &act.sa_mask ); act.sa_flags = 0;