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 | |
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')
-rw-r--r-- | camel/providers/imap/camel-imap-command.c | 6 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 3 |
2 files changed, 6 insertions, 3 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; diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 228e8689e0..e95904027a 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1869,7 +1869,8 @@ get_message_simple (CamelImapFolder *imap_folder, const char *uid, camel_object_unref (CAMEL_OBJECT (stream)); if (ret == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, - _("Unable to retrieve message: %s"), strerror(errno)); + _("Unable to retrieve message: %s"), + g_strerror (errno)); camel_object_unref (CAMEL_OBJECT (msg)); return NULL; } |