IBM Support

IV71963: INVALID QINFO/QFORMAT MESSAGE FOR STRFTIME() SPECIFIERS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • C99 added new specifiers to the strftime() function, including
    the "%G" specifier for Week-based year.
    
    The XL C/C++ options qinfo/qformat flag incorrect specifier
    usage and is incorrectly flagging the '%G' specifier.
    
    
       === TEST CASE ===
    
    #include <stdio.h>
    #include <time.h>
    int main()
    {
        const time_t mytime=(time_t)639192213; // 04/04/1990 1:23:33
        struct tm *now = gmtime(&mytime);
        char hour_sig[400] = {0};
        strftime(hour_sig, sizeof(hour_sig) - 1, "G = %G m = %m d =
    %d H = %H", now);
        printf("%s\n",hour_sig);
    }
    
    
    
    $ xlc -qinfo=all -qformat=all test.c
    ...
    "test.c", line 8.46: 1506-1184 (I) This platform does not
    support the use of a non-portable extension character 'G' in the
     format.
    ...
    

Local fix

Problem summary

  • PROBLEM DESCRIPTION:
    The compiler is incorrectly flagging valid usage of C99
    specifiers to the strftime() function.
    
    USERS AFFECTED:
    Users of the C99 specifiers with the strftime() function.
    

Problem conclusion

  • The list of C99 specifiers for strftime() are now accepted by
    the compiler and the informational message is no longer output.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV71963

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-04-09

  • Closed date

    2015-05-25

  • Last modified date

    2015-05-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RC10 PSY

       UP

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1"}]

Document Information

Modified date:
02 October 2021