[exim-dev] [Bug 1161] New: iconv prototype update

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: exim-dev
Nouveaux-sujets: [exim-dev] [Bug 1161] iconv prototype update, [exim-dev] [Bug 1161] iconv prototype update, [exim-dev] [Bug 1161] iconv prototype update
Sujet: [exim-dev] [Bug 1161] New: iconv prototype update
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1161
           Summary: iconv prototype update
           Product: Exim
           Version: N/A
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: General execution
        AssignedTo: pdp@???
        ReportedBy: pdp@???
                CC: exim-dev@???



For 4.78, invert the default iconv second parameter prototype to be non-const,
because the POSIX standardisation consensus was to mess with everyone.

>From the iconv ChangeLog:


2007-05-27 Bruno Haible <bruno@???>

        Follow broken iconv() prototype in POSIX.
        * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
        * lib/config.h.in (ICONV_CONST): Change default value to an empty
        comment.
        * src/iconv.c (ICONV_CONST): Change default value to empty.
        Reported by Andreas Krennmair <ak@???>.


SUSv3 states:

size_t iconv(iconv_t cd, char **restrict inbuf,
       size_t *restrict inbytesleft, char **restrict outbuf,
       size_t *restrict outbytesleft);



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email