changeset 4437:f5c6e33b1013

[gaim-migrate @ 4712] Daniel Jelinski (dejot) writes: "Buddy list is stored on server in charset CP1250. It was not converted to UTF-8 during importing. The new code handles this conversion. This can probably solve bug# 658163." and paco thinks it at least won't hurt anything. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 27 Jan 2003 22:27:02 +0000
parents 83260179de90
children 2054d8429925
files src/protocols/gg/gg.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Mon Jan 27 21:11:55 2003 +0000
+++ b/src/protocols/gg/gg.c	Mon Jan 27 22:27:02 2003 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 4639 2003-01-21 00:38:33Z hermanator $
+ * $Id: gg.c 4712 2003-01-27 22:27:02Z lschiere $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  * 
@@ -788,7 +788,7 @@
 		g_strdelimit(users_tbl[i], "\r\t\n\015", ' ');
 		data_tbl = g_strsplit(users_tbl[i], ";", 8);
 
-		show = data_tbl[3];
+		show = charset_convert(data_tbl[3], "CP1250", "UTF-8");
 		name = data_tbl[6];
 
 		if (invalid_uin(name)) {
@@ -812,6 +812,7 @@
 			gaim_blist_save();
 			g_free(group);
 		}
+		g_free(show);
 		g_strfreev(data_tbl);
 	}
 	g_strfreev(users_tbl);