[pcre-dev] [Bug 1587] New: pcre2_config(PCRE2_CONFIG_VERSION…

Kezdőlap
Üzenet törlése
Szerző: John Engstrom
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1587] New: pcre2_config(PCRE2_CONFIG_VERSION, pcre2_ver) returns incorrect version date
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1587
           Summary: pcre2_config(PCRE2_CONFIG_VERSION, pcre2_ver) returns
                    incorrect version date
           Product: PCRE
           Version: 10.00 (PCRE2)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: bug
          Priority: low
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: john.engstrom@???
                CC: pcre-dev@???



A call to pcre2_config(PCRE2_CONFIG_VERSION, pcre2_ver) is putting the
following in the pcre2_ver char* array: "10.00 2014-01-05"

It appears from the release information that the year should be 2015 and not
2014.

It appears the pcre2.h file contains the offending #define:
                #define PCRE2_DATE           2014-01-05


And the section of code in pcre2_config.c starting at line 207 references the
offending #define:
                  case PCRE2_CONFIG_VERSION:
                    {
                    const char *v = (XSTRING(Z PCRE2_PRERELEASE)[1] == 0)?
                      XSTRING(PCRE2_MAJOR.PCRE2_MINOR PCRE2_DATE) :
                      XSTRING(PCRE2_MAJOR.PCRE2_MINOR) XSTRING(PCRE2_PRERELEASE
PCRE2_DATE);
                    return 1 + ((where == NULL)?
                      strlen(v) : PRIV(strcpy_c8)((PCRE2_UCHAR *)where, v));
                    }
                  }



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