LogBackend: remove character set support

Always write UTF-8 to the log file.
This commit is contained in:
Max Kellermann
2015-06-22 22:33:37 +02:00
parent 73bd6af0f9
commit 9f4f1bab39
4 changed files with 1 additions and 57 deletions

View File

@@ -31,10 +31,6 @@
#include "util/Domain.hxx"
#include "system/FatalError.hxx"
#ifdef HAVE_GLIB
#include <glib.h>
#endif
#include <assert.h>
#include <string.h>
#include <fcntl.h>
@@ -131,12 +127,6 @@ log_init(bool verbose, bool use_stdout, Error &error)
#else
const struct config_param *param;
#ifdef HAVE_GLIB
const char *charset;
g_get_charset(&charset);
SetLogCharset(charset);
#endif
if (verbose)
SetLogThreshold(LogLevel::DEBUG);
else if ((param = config_get_param(ConfigOption::LOG_LEVEL)) != nullptr)
@@ -216,10 +206,6 @@ void setup_log_output(bool use_stdout)
redirect_logs(out_fd);
close(out_fd);
out_fd = -1;
#ifdef HAVE_GLIB
SetLogCharset(nullptr);
#endif
#endif
}