do not exclude iconv support if unicode is enabled

This commit is contained in:
Andrzej Rybczak
2009-01-17 14:10:44 +01:00
parent 7d82da3fed
commit fd5a3e142c
6 changed files with 37 additions and 19 deletions

View File

@@ -193,6 +193,11 @@ int main(int argc, char *argv[])
if (!ConnectToMPD())
return -1;
// redirect std::cerr output to ~/.ncmpcpp/error.log file
std::ofstream errorlog((config_dir + "error.log").c_str(), std::ios::app);
std::streambuf *cerr_buffer = std::cerr.rdbuf();
std::cerr.rdbuf(errorlog.rdbuf());
InitScreen(Config.colors_enabled);
init_current_locale();
@@ -359,11 +364,6 @@ int main(int argc, char *argv[])
signal(SIGPIPE, SIG_IGN);
// redirect std::cerr output to ~/.ncmpcpp/error.log file
std::ofstream errorlog((config_dir + "error.log").c_str(), std::ios::app);
std::streambuf * cerr_buffer = std::cerr.rdbuf();
std::cerr.rdbuf(errorlog.rdbuf());
# ifdef HAVE_CURL_CURL_H
pthread_attr_t attr_detached;
pthread_attr_init(&attr_detached);