Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 4159:3f267c74e50a
[gaim-migrate @ 4387]
A few days ago I added a feature that sometimes put cool little
random characters after people's aim info or away messages.
Unfortunately, the world just isn't ready for this feature,
so I feel obligated to remove it. I'm sorry. He would have
wanted it this way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 31 Dec 2002 05:24:17 +0000 |
parents | 3468d666d3cc |
children | 481c51159627 |
comparison
equal
deleted
inserted
replaced
4158:a638bc9454a6 | 4159:3f267c74e50a |
---|---|
2642 | 2642 |
2643 if (text_len > 0) { | 2643 if (text_len > 0) { |
2644 flags = parse_encoding (text_enc); | 2644 flags = parse_encoding (text_enc); |
2645 switch (flags) { | 2645 switch (flags) { |
2646 case 0: | 2646 case 0: |
2647 utf8 = g_strdup(text); | 2647 utf8 = g_strndup(text, text_len); |
2648 break; | 2648 break; |
2649 case AIM_IMFLAGS_UNICODE: | 2649 case AIM_IMFLAGS_UNICODE: |
2650 utf8 = g_convert(text, text_len, "UTF-8", "UCS-2BE", NULL, NULL, NULL); | 2650 utf8 = g_convert(text, text_len, "UTF-8", "UCS-2BE", NULL, NULL, NULL); |
2651 break; | 2651 break; |
2652 default: | 2652 default: |