diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-11 14:40:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-11 14:40:28 +0800 |
commit | e1ef0a9ced256cb86d19b379c3097efdbcdb498e (patch) | |
tree | a4dcceeaecae46ce8b14fe631fca952ba29d97aa /camel/providers/imap/camel-imap-command.c | |
parent | 3eabd14ace6523781473486b533b8e4ac355fc14 (diff) | |
download | gsoc2013-evolution-e1ef0a9ced256cb86d19b379c3097efdbcdb498e.tar.gz gsoc2013-evolution-e1ef0a9ced256cb86d19b379c3097efdbcdb498e.tar.zst gsoc2013-evolution-e1ef0a9ced256cb86d19b379c3097efdbcdb498e.zip |
Use g_strerror when setting an exception string (we need it to be in
2002-11-11 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-folder.c (get_message_simple): Use
g_strerror when setting an exception string (we need it to be in
UTF-8).
* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Use
g_strerror when setting an exception string (we need it to be in
UTF-8).
* providers/pop3/camel-pop3-folder.c (pop3_refresh_info): Use
g_strerror when setting an exception string (we need it to be in
UTF-8).
(pop3_get_message): Same.
svn path=/trunk/; revision=18690
Diffstat (limited to 'camel/providers/imap/camel-imap-command.c')
-rw-r--r-- | camel/providers/imap/camel-imap-command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c index 13a472f5b5..25d7bbd022 100644 --- a/camel/providers/imap/camel-imap-command.c +++ b/camel/providers/imap/camel-imap-command.c @@ -448,9 +448,11 @@ imap_read_untagged (CamelImapStore *store, char *line, CamelException *ex) nread = camel_stream_read (store->istream, str->str + 1, length); if (nread == -1) { if (errno == EINTR) - camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, _("Operation cancelled")); + camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL, + _("Operation cancelled")); else - camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, g_strerror (errno)); + camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, + g_strerror (errno)); camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL); g_string_free (str, TRUE); goto lose; |