aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;