Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/e95c11dac89e39634aa9fa82a13ac780740122ee
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/e95c11dac89e39634aa9fa82a13ac780740122ee
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/e95c11dac89e39634aa9fa82a13ac780740122ee

The branch, master has been updated
       via  e95c11dac89e39634aa9fa82a13ac780740122ee (commit)
      from  0dbc6e5ecdc3a4ec97fd65876051577e53fc1873 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=e95c11dac89e39634aa9fa82a13ac780740122ee
commit e95c11dac89e39634aa9fa82a13ac780740122ee
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    remove user warning and log error instead

diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index 33dcf2a..88c77fd 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -2296,10 +2296,11 @@ static bool html_drop_file_at_point(struct content *c, 
int x, int y, char *file)
                ret = guit->utf8->local_to_utf8(buffer, file_len, &utf8_buff);
                if (ret != NSERROR_OK) {
                        /* bad encoding shouldn't happen */
+                       NSLOG(netsurf, ERROR,
+                             "local to utf8 encoding failed (%s)",
+                             messages_get_errorcode(ret));
                        assert(ret != NSERROR_BAD_ENCODING);
-                       NSLOG(netsurf, INFO, "local to utf8 encoding failed");
                        free(buffer);
-                       guit->misc->warning("NoMemory", NULL);
                        return true;
                }
 


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/html/html.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index 33dcf2a..88c77fd 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -2296,10 +2296,11 @@ static bool html_drop_file_at_point(struct content *c, 
int x, int y, char *file)
                ret = guit->utf8->local_to_utf8(buffer, file_len, &utf8_buff);
                if (ret != NSERROR_OK) {
                        /* bad encoding shouldn't happen */
+                       NSLOG(netsurf, ERROR,
+                             "local to utf8 encoding failed (%s)",
+                             messages_get_errorcode(ret));
                        assert(ret != NSERROR_BAD_ENCODING);
-                       NSLOG(netsurf, INFO, "local to utf8 encoding failed");
                        free(buffer);
-                       guit->misc->warning("NoMemory", NULL);
                        return true;
                }
 


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to