From: oetiker Date: Sun, 4 Oct 2009 11:48:40 +0000 (+0000) Subject: * comment on the reson for calling setlocale X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3dd07d8e91d816a056096c778a564d9a1ba6a4e7;p=rrdtool-all.git * comment on the reson for calling setlocale * to not force the message encoding ... messages should be encoded in the current locale git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1931 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index 853f0db4..bda631d2 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -410,12 +410,13 @@ int main( 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) {