[Poppler-bugs] [Bug 22095] New: should use g_strerror, not strerror

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 4 13:22:01 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22095

           Summary: should use g_strerror, not strerror
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glib frontend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: chpe at gnome.org


In poppler-document.cc:

        g_set_error (error, G_FILE_ERROR,
                     g_file_error_from_errno (fopen_errno),
                     strerror(fopen_errno));

This is wrong; it should use g_strerror. See the g_strerror docs: 

You should use this function in preference to strerror(), because it returns a
string in UTF-8 encoding, and since not all platforms support the strerror()
function.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list