1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

Fixed terminal encoding detection when NLS is disabled (bug #20646)

This commit is contained in:
Sebastien Helleu
2007-08-01 09:59:00 +00:00
parent 0904d9afaf
commit efd511dea4
6 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -817,8 +817,8 @@ weechat_sigsegv ()
int
main (int argc, char *argv[])
{
#ifdef ENABLE_NLS
setlocale (LC_ALL, ""); /* initialize gettext */
#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
bind_textdomain_codeset (PACKAGE, "UTF-8");
textdomain (PACKAGE);
+2 -1
View File
@@ -31,8 +31,9 @@
#include <gnutls/gnutls.h>
#endif
#include <locale.h>
#if defined(ENABLE_NLS) && !defined(_)
#include <locale.h>
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#else