aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-19 19:16:35 +0000
committerKalle Wallin <kaw@linux.se>2004-03-19 19:16:35 +0000
commita4b2a21ad721f9b2e23bd9956fb56c5959c7482a (patch)
tree1be9d5707d11aa1fa5b3c8615c112fc95722a126
parenta48c2fe2c2d13fbc879a6b5111fc9f3c866ac5b3 (diff)
downloadmpd-a4b2a21ad721f9b2e23bd9956fb56c5959c7482a.tar.gz
mpd-a4b2a21ad721f9b2e23bd9956fb56c5959c7482a.tar.xz
mpd-a4b2a21ad721f9b2e23bd9956fb56c5959c7482a.zip
Initialize charset before starting curses.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@309 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index e91532277..c3c6687fd 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;