comparison lib/protocols.c @ 992:9c583f570950 default tip

more character set conversion on remote file names.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 15 Sep 2010 11:42:57 +0900
parents c99b134c6185
children
comparison
equal deleted inserted replaced
991:b884506e569c 992:9c583f570950
462 { 462 {
463 if (g_utf8_validate (fle->file, -1, NULL)) 463 if (g_utf8_validate (fle->file, -1, NULL))
464 fle->filename_utf8_encoded = 1; 464 fle->filename_utf8_encoded = 1;
465 else 465 else
466 { 466 {
467 utf8 = gftp_filename_to_utf8 (request, fle->file, &destlen); 467 utf8 = gftp_remote_filename_to_utf8 (request, fle->file, &destlen);
468 if (utf8 != NULL) 468 if (utf8 != NULL)
469 { 469 {
470 g_free (fle->file); 470 g_free (fle->file);
471 fle->file = utf8; 471 fle->file = utf8;
472 fle->filename_utf8_encoded = 1; 472 fle->filename_utf8_encoded = 1;