diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-19 19:16:35 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-19 19:16:35 +0000 |
commit | a4b2a21ad721f9b2e23bd9956fb56c5959c7482a (patch) | |
tree | 1be9d5707d11aa1fa5b3c8615c112fc95722a126 | |
parent | a48c2fe2c2d13fbc879a6b5111fc9f3c866ac5b3 (diff) | |
download | mpd-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |