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

Fixed crash with 64-bits arch (like AMD64) when converting UTF-8, added weechat version in log at startup

This commit is contained in:
Sebastien Helleu
2005-03-24 16:42:24 +00:00
parent cec88e0047
commit 36b2e10497
4 changed files with 14 additions and 6 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2005-03-21
ChangeLog - 2005-03-24
Version 0.1.2 (under dev!):
* fixed crash with 64-bits arch (like AMD64) when converting UTF-8
* added missing IRC commands (307)
Version 0.1.1 (2005-03-20):
+5 -2
View File
@@ -116,7 +116,7 @@ weechat_convert_encoding (char *from_code, char *to_code, char *string)
#ifdef HAVE_ICONV
iconv_t cd;
char *inbuf, *ptr_inbuf, *ptr_outbuf;
int inbytesleft, outbytesleft;
size_t inbytesleft, outbytesleft;
if (from_code && from_code[0] && to_code && to_code[0]
&& (strcasecmp(from_code, to_code) != 0))
@@ -573,6 +573,9 @@ weechat_welcome_message ()
cfg_look_startup_version)
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1,
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
wee_log_printf ("%s (%s %s %s)\n",
PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
}
/*
@@ -761,8 +764,8 @@ main (int argc, char *argv[])
}
gui_init (); /* init WeeChat interface */
plugin_init (); /* init plugin interface(s) */
weechat_welcome_message (); /* display WeeChat welcome message */
plugin_init (); /* init plugin interface(s) */
/* auto-connect to servers */
server_auto_connect (server_cmd_line);
fifo_create (); /* create FIFO pipe for remote control */
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2005-03-21
ChangeLog - 2005-03-24
Version 0.1.2 (under dev!):
* fixed crash with 64-bits arch (like AMD64) when converting UTF-8
* added missing IRC commands (307)
Version 0.1.1 (2005-03-20):
+5 -2
View File
@@ -116,7 +116,7 @@ weechat_convert_encoding (char *from_code, char *to_code, char *string)
#ifdef HAVE_ICONV
iconv_t cd;
char *inbuf, *ptr_inbuf, *ptr_outbuf;
int inbytesleft, outbytesleft;
size_t inbytesleft, outbytesleft;
if (from_code && from_code[0] && to_code && to_code[0]
&& (strcasecmp(from_code, to_code) != 0))
@@ -573,6 +573,9 @@ weechat_welcome_message ()
cfg_look_startup_version)
gui_printf_color (NULL, COLOR_WIN_CHAT_PREFIX1,
"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
wee_log_printf ("%s (%s %s %s)\n",
PACKAGE_STRING, _("compiled on"), __DATE__, __TIME__);
}
/*
@@ -761,8 +764,8 @@ main (int argc, char *argv[])
}
gui_init (); /* init WeeChat interface */
plugin_init (); /* init plugin interface(s) */
weechat_welcome_message (); /* display WeeChat welcome message */
plugin_init (); /* init plugin interface(s) */
/* auto-connect to servers */
server_auto_connect (server_cmd_line);
fifo_create (); /* create FIFO pipe for remote control */