Mercurial > gftp.yaz
comparison src/gtk/bookmarks.c @ 844:1ece208d1357
2006-11-2 Brian Masney <masneyb@gftp.org>
* src/gtk/bookmarks.c - removed UTF-8 check since the string is already
in that format
author | masneyb |
---|---|
date | Fri, 03 Nov 2006 02:37:09 +0000 |
parents | 96ce71cd7bf5 |
children | 877282be3a78 |
comparison
equal
deleted
inserted
replaced
843:32dbed7e0dc4 | 844:1ece208d1357 |
---|---|
423 newentry->path = g_strdup (str); | 423 newentry->path = g_strdup (str); |
424 | 424 |
425 while ((pos = strchr (str, '/')) != NULL) | 425 while ((pos = strchr (str, '/')) != NULL) |
426 *pos++ = ' '; | 426 *pos++ = ' '; |
427 #else | 427 #else |
428 if (g_utf8_validate (str, -1, NULL)) | 428 newentry->path = g_strdup (str); |
429 newentry->path = g_strdup (str); | 429 while ((pos = g_utf8_strchr (newentry->path, -1, '/')) != NULL) |
430 else | |
431 newentry->path = g_locale_to_utf8 (str, -1, &bread, &bwrite, NULL); | |
432 | |
433 while ((pos = g_utf8_strchr (str, -1, '/')) != NULL) | |
434 *pos++ = ' '; | 430 *pos++ = ' '; |
435 #endif | 431 #endif |
436 | 432 |
437 newentry->prev = new_bookmarks; | 433 newentry->prev = new_bookmarks; |
438 if (data) | 434 if (data) |