summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ac2f60)
raw | patch | inline | side by side (parent: 8ac2f60)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:48:40 +0000 (11:48 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:48:40 +0000 (11:48 +0000) |
* to not force the message encoding ... messages
should be encoded in the current locale
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1931 a5681a0c-68f1-0310-ab6d-d61299d08faa
should be encoded in the current locale
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1931 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 853f0db4c308fd21a828efc4d7c1cf25cae15cf8..bda631d2f49ee51ad60dd3d420d582ef2c4882a7 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
fpsetmask(0);
#endif
#ifdef HAVE_LOCALE_H
+ /* initialize locale settings
+ according to localeconv(3) */
setlocale(LC_ALL, "");
#endif
#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
#endif
if (argc == 1) {