Call bind_textdomain_codeset().

This commit is contained in:
Přemysl Eric Janouch 2011-01-09 05:40:25 +01:00
parent 3aeedd37b6
commit 800a381129
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* logdiag.c -- logdiag main source file.
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.
* Copyright Přemysl Janouch 2010 - 2011. All rights reserved.
*
* See the file LICENSE for licensing information.
*
@ -24,6 +24,7 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_DOMAIN, GETTEXT_DIRNAME);
bind_textdomain_codeset (GETTEXT_DOMAIN, "UTF-8");
textdomain (GETTEXT_DOMAIN);
#endif