comparison icon.c @ 324:5e0c1f59a090

icon file whose name contains utf-8 kanji characters can be retrieved now.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 19 Sep 2009 20:39:57 +0900
parents 6ebabb96485f
children
comparison
equal deleted inserted replaced
323:6ebabb96485f 324:5e0c1f59a090
245 gchar *slash = strrchr(url, '/'); 245 gchar *slash = strrchr(url, '/');
246 *slash = '\0'; 246 *slash = '\0';
247 247
248 gchar *tmp; 248 gchar *tmp;
249 /* url encode basename. twitter needs this. */ 249 /* url encode basename. twitter needs this. */
250 #if 0 250 if(service == twitter_service) {
251 if(service == twitter_service) 251 gchar *tmp0 = strip_html_markup(slash+1);
252 tmp = g_strdup_printf("%s/%s", url, 252 gchar *tmp1 = g_uri_escape_string(tmp0, NULL, FALSE);
253 purple_url_encode(slash+1)); 253 tmp = g_strdup_printf("%s/%s", url, tmp1);
254 #else 254 g_free(tmp0);
255 if(service == twitter_service) { 255 g_free(tmp1);
256 gchar *tmp0 = g_uri_escape_string(slash+1, NULL, FALSE); 256 }
257 tmp = g_strdup_printf("%s/%s", url, tmp0);
258 g_free(tmp0);
259 }
260 #endif
261 else if(service == wassr_service) { 257 else if(service == wassr_service) {
262 gchar *tmp0 = NULL; 258 gchar *tmp0 = NULL;
263 tmp0 = g_regex_replace(regp[SIZE_128_WASSR], slash+1, 259 tmp0 = g_regex_replace(regp[SIZE_128_WASSR], slash+1,
264 -1, 0, ".64.", 0, NULL); 260 -1, 0, ".64.", 0, NULL);
265 tmp = g_strdup_printf("http://wassr.jp%s/%s", url, 261 tmp = g_strdup_printf("http://wassr.jp%s/%s", url,