Code

Initialize charset before starting curses.
authorKalle Wallin <kaw@linux.se>
Fri, 19 Mar 2004 19:16:35 +0000 (19:16 +0000)
committerKalle Wallin <kaw@linux.se>
Fri, 19 Mar 2004 19:16:35 +0000 (19:16 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@309 09075e82-0dd4-0310-85a5-a0d7c8717e4f

main.c

diff --git a/main.c b/main.c
index e91532277b535e4b362f254142a734a89df0933f..c3c6687fd9fa93e71605fb51ef1d5278853e0700 100644 (file)
--- 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;