From a4b2a21ad721f9b2e23bd9956fb56c5959c7482a Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Fri, 19 Mar 2004 19:16:35 +0000 Subject: [PATCH] Initialize charset before starting curses. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@309 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- main.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2