Mercurial > pidgin.yaz
comparison src/util.c @ 3370:eb7b398051f2
[gaim-migrate @ 3389]
Is ISO-8859 a good default charset to use if one doesn't have nl_langinfo?
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 02 Aug 2002 05:19:52 +0000 |
parents | 9bb2e904fadb |
children | 363af6ce86a8 |
comparison
equal
deleted
inserted
replaced
3369:ae9894ad81a0 | 3370:eb7b398051f2 |
---|---|
1119 fclose(fd); | 1119 fclose(fd); |
1120 } | 1120 } |
1121 | 1121 |
1122 char *convert_string(char *str, const char *destset, const char *srcset) | 1122 char *convert_string(char *str, const char *destset, const char *srcset) |
1123 { | 1123 { |
1124 #ifdef HAVE_ICONV | |
1124 char *buf; | 1125 char *buf; |
1125 iconv_t cd; | 1126 iconv_t cd; |
1126 size_t insize = 0; | 1127 size_t insize = 0; |
1127 size_t outsize = 0; | 1128 size_t outsize = 0; |
1128 size_t nconv = 0; | 1129 size_t nconv = 0; |
1156 | 1157 |
1157 ret = g_strdup(buf); | 1158 ret = g_strdup(buf); |
1158 g_free(buf); | 1159 g_free(buf); |
1159 | 1160 |
1160 return ret; | 1161 return ret; |
1162 #else | |
1163 return g_strdup(str); | |
1161 } | 1164 } |
1162 | 1165 |
1163 void strip_linefeed(gchar *text) | 1166 void strip_linefeed(gchar *text) |
1164 { | 1167 { |
1165 int i, j; | 1168 int i, j; |