Mercurial > pidgin
comparison src/protocols/gg/gg.c @ 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 | dcc6c130c6d9 |
children | 2afc0f845e74 |
comparison
equal
deleted
inserted
replaced
4436:83260179de90 | 4437:f5c6e33b1013 |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 4639 2003-01-21 00:38:33Z hermanator $ | 3 * $Id: gg.c 4712 2003-01-27 22:27:02Z lschiere $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
786 gchar *name, *show; | 786 gchar *name, *show; |
787 | 787 |
788 g_strdelimit(users_tbl[i], "\r\t\n\015", ' '); | 788 g_strdelimit(users_tbl[i], "\r\t\n\015", ' '); |
789 data_tbl = g_strsplit(users_tbl[i], ";", 8); | 789 data_tbl = g_strsplit(users_tbl[i], ";", 8); |
790 | 790 |
791 show = data_tbl[3]; | 791 show = charset_convert(data_tbl[3], "CP1250", "UTF-8"); |
792 name = data_tbl[6]; | 792 name = data_tbl[6]; |
793 | 793 |
794 if (invalid_uin(name)) { | 794 if (invalid_uin(name)) { |
795 continue; | 795 continue; |
796 } | 796 } |
810 /* Add Buddy to our userlist */ | 810 /* Add Buddy to our userlist */ |
811 add_buddy(gc->user, group, name, strlen(show) ? show : name); | 811 add_buddy(gc->user, group, name, strlen(show) ? show : name); |
812 gaim_blist_save(); | 812 gaim_blist_save(); |
813 g_free(group); | 813 g_free(group); |
814 } | 814 } |
815 g_free(show); | |
815 g_strfreev(data_tbl); | 816 g_strfreev(data_tbl); |
816 } | 817 } |
817 g_strfreev(users_tbl); | 818 g_strfreev(users_tbl); |
818 } | 819 } |
819 | 820 |