From efd511dea435d241aa15d20d76af9518d46fb3ce Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 1 Aug 2007 09:59:00 +0000 Subject: [PATCH] Fixed terminal encoding detection when NLS is disabled (bug #20646) --- ChangeLog | 3 ++- src/common/weechat.c | 2 +- src/common/weechat.h | 3 ++- weechat/ChangeLog | 3 ++- weechat/src/common/weechat.c | 2 +- weechat/src/common/weechat.h | 3 ++- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f1f11f9a..c166a7afa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2007-07-19 +ChangeLog - 2007-08-01 Version 0.2.6 (under dev!): + * fixed terminal encoding detection when NLS is disabled (bug #20646) * fixed crash when sending data to channel or pv on disconnected server (bug #20524) * improved command /server ant its output diff --git a/src/common/weechat.c b/src/common/weechat.c index a391ee29b..b654bb59a 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -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); diff --git a/src/common/weechat.h b/src/common/weechat.h index 61470b00f..34e95a50e 100644 --- a/src/common/weechat.h +++ b/src/common/weechat.h @@ -31,8 +31,9 @@ #include #endif +#include + #if defined(ENABLE_NLS) && !defined(_) - #include #ifdef HAVE_LIBINTL_H #include #else diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 8f1f11f9a..c166a7afa 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2007-07-19 +ChangeLog - 2007-08-01 Version 0.2.6 (under dev!): + * fixed terminal encoding detection when NLS is disabled (bug #20646) * fixed crash when sending data to channel or pv on disconnected server (bug #20524) * improved command /server ant its output diff --git a/weechat/src/common/weechat.c b/weechat/src/common/weechat.c index a391ee29b..b654bb59a 100644 --- a/weechat/src/common/weechat.c +++ b/weechat/src/common/weechat.c @@ -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); diff --git a/weechat/src/common/weechat.h b/weechat/src/common/weechat.h index 61470b00f..34e95a50e 100644 --- a/weechat/src/common/weechat.h +++ b/weechat/src/common/weechat.h @@ -31,8 +31,9 @@ #include #endif +#include + #if defined(ENABLE_NLS) && !defined(_) - #include #ifdef HAVE_LIBINTL_H #include #else