<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bug in strptime() function in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479865#M43152</link>
    <description>Riana is half right.  The standard at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.opengroup.org/onlinepubs/7990989775/xsh/strptime.html" target="_blank"&gt;http://www.opengroup.org/onlinepubs/7990989775/xsh/strptime.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;clearly states, regarding the format string, "There must be white-space or other non-alphanumeric characters between any two conversion specifications."  Other C libraries clearly do not comply with this requirement.&lt;BR /&gt;&lt;BR /&gt;However, there is no reason that the string being scanned should also need whitespace between fields.  The CRTL does not comply with that aspect of the standard.&lt;BR /&gt;&lt;BR /&gt;There is unfortunately no good alternative to writing code that works everywhere regardless of what the standard says, testing that it does so, and being prepared to rewrite the code when the standard and/or the implementations catch up with each other.</description>
    <pubDate>Sat, 15 Aug 2009 18:59:15 GMT</pubDate>
    <dc:creator>Craig A Berry</dc:creator>
    <dc:date>2009-08-15T18:59:15Z</dc:date>
    <item>
      <title>Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479861#M43148</link>
      <description>&lt;!--!*#--&gt;I've run into what appears to be a bug in strptime() function on VMS. Attached reproducer.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Boris&lt;BR /&gt;&lt;BR /&gt;t.c&lt;BR /&gt;---&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main() {&lt;BR /&gt;  struct tm tms;&lt;BR /&gt;  if ( !strptime("20080125", "%Y%m%d", &amp;amp;tms) )&lt;BR /&gt;    puts("OOPS!");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ cc/ver&lt;BR /&gt;HP C V7.3-018 on OpenVMS IA64 V8.3&lt;BR /&gt;$ pipe cc t.c ; link t.obj ; run t.exe&lt;BR /&gt;OOPS!&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;$ uname -a&lt;BR /&gt;Linux  ...  x86_64 GNU/Linux&lt;BR /&gt;$ cc t.c &amp;amp;&amp;amp; ./a.out&lt;BR /&gt;$&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Fri, 14 Aug 2009 17:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479861#M43148</guid>
      <dc:creator>WW304289</dc:creator>
      <dc:date>2009-08-14T17:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479862#M43149</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The input string and the format string both need spaces after year, month and date values. Find below the modified program that works.&lt;BR /&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main() {&lt;BR /&gt;  struct tm tms;&lt;BR /&gt;  if ( !strptime("2008 01 25", "%Y %m %d", &amp;amp;tms) )&lt;BR /&gt;    puts("OOPS!");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Sat, 15 Aug 2009 04:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479862#M43149</guid>
      <dc:creator>Clarete Riana</dc:creator>
      <dc:date>2009-08-15T04:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479863#M43150</link>
      <description>Riana, &lt;BR /&gt;sorry, but this just confirms the CRTL implementation on VMS is flawed:&lt;BR /&gt; nothing in the description requires white-space between the conversion items.&lt;BR /&gt;&lt;BR /&gt;On linux (and other systems ?) it simply works.&lt;BR /&gt; If the Xopen/Posix standards tell it different, please cite; otherwise CRTL should be corrected, such a form of date is really not  unusual, e.g. in tables sorted by date/time.</description>
      <pubDate>Sat, 15 Aug 2009 08:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479863#M43150</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-15T08:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479864#M43151</link>
      <description>The language lawyers may (will?) have a split decision here, but it's looking like this behavior diverges from that of gcc.  (There are other areas of that divergence, though.)&lt;BR /&gt;&lt;BR /&gt;Here's gcc 4.0.1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ cc x.c&lt;BR /&gt;f$ ./a.out&lt;BR /&gt;20080125&lt;BR /&gt;200801&lt;BR /&gt;200825&lt;BR /&gt;$ cat x.c&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main() {&lt;BR /&gt;  struct tm tms;&lt;BR /&gt;  if ( !strptime("20080125", "%Y%m%d", &amp;amp;tms) )&lt;BR /&gt;    puts("20080125");&lt;BR /&gt;  if ( !strptime("200801", "%Y%m", &amp;amp;tms) )&lt;BR /&gt;    puts("200801");&lt;BR /&gt;  if ( !strptime("200825", "%Y%d", &amp;amp;tms) )&lt;BR /&gt;    puts("200825");&lt;BR /&gt;  if ( !strptime("2008", "%Y", &amp;amp;tms) )&lt;BR /&gt;    puts("2008");&lt;BR /&gt;  if ( !strptime("20080", "%Y", &amp;amp;tms) )&lt;BR /&gt;    puts("20080");&lt;BR /&gt;  if ( !strptime("0125", "%m%d", &amp;amp;tms) )&lt;BR /&gt;    puts("0125");&lt;BR /&gt;  exit( EXIT_SUCCESS );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is gcc 4.2.1...&lt;BR /&gt;&lt;BR /&gt;$ cc x.c&lt;BR /&gt;$ ./a.out&lt;BR /&gt;$ &lt;BR /&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Sat, 15 Aug 2009 15:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479864#M43151</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-08-15T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479865#M43152</link>
      <description>Riana is half right.  The standard at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.opengroup.org/onlinepubs/7990989775/xsh/strptime.html" target="_blank"&gt;http://www.opengroup.org/onlinepubs/7990989775/xsh/strptime.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;clearly states, regarding the format string, "There must be white-space or other non-alphanumeric characters between any two conversion specifications."  Other C libraries clearly do not comply with this requirement.&lt;BR /&gt;&lt;BR /&gt;However, there is no reason that the string being scanned should also need whitespace between fields.  The CRTL does not comply with that aspect of the standard.&lt;BR /&gt;&lt;BR /&gt;There is unfortunately no good alternative to writing code that works everywhere regardless of what the standard says, testing that it does so, and being prepared to rewrite the code when the standard and/or the implementations catch up with each other.</description>
      <pubDate>Sat, 15 Aug 2009 18:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479865#M43152</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2009-08-15T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479866#M43153</link>
      <description>Thanks for clarification Craig.&lt;BR /&gt;The CRTL HELP then correctly represents the standard.&lt;BR /&gt;&lt;BR /&gt;IMHO the standard should more clearly tell that   conversion items must be separated by either a white-space or other characters, one of the two must be present; so it is clear that %Y%m%d is not a legal format.&lt;BR /&gt;The present wording rather suggests delimiters between conversion items are optional.</description>
      <pubDate>Sun, 16 Aug 2009 08:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479866#M43153</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-16T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479867#M43154</link>
      <description>Another case of being technically correct and operationally wrong?   Ah, well.  &lt;BR /&gt;&lt;BR /&gt;That's never a fun tradeoff; you're wrong either way you go.  &lt;BR /&gt;&lt;BR /&gt;The ftp server has fallen into a similar hole.  TCP/IP Services is technically correct, and operationally incompatible.&lt;BR /&gt;&lt;BR /&gt;I'd hope for a gcc or clang compilation mode for newer OpenVMS compilers (to better work with gnv and such), but then I've encountered piles of (inherently buggy) VAX C code recently; old stuff.&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Aug 2009 13:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479867#M43154</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-08-16T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479868#M43155</link>
      <description>&amp;gt;Craig: there is no reason that the string being scanned should also need whitespace between fields.&lt;BR /&gt;&lt;BR /&gt;Huh?  If it exists in the format, it must be there in the string.&lt;BR /&gt;&lt;BR /&gt;I suppose one way to allow no delimiters is to fully specify (or assume) the widths.</description>
      <pubDate>Sun, 16 Aug 2009 19:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479868#M43155</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-16T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479869#M43156</link>
      <description>&amp;gt;&amp;gt;I suppose one way to allow no delimiters is to fully specify (or assume) the widths.&lt;BR /&gt;&lt;BR /&gt;One might think so, but apparently neither VMS nor GNU has implemented it this way.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 05:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479869#M43156</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-17T05:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479870#M43157</link>
      <description>i.e.&lt;BR /&gt;&lt;BR /&gt;strptime("20080125", "%4Y%2m%2d", &amp;amp;tms)&lt;BR /&gt;&lt;BR /&gt;gives error in both VMS and GNU systems.</description>
      <pubDate>Mon, 17 Aug 2009 06:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479870#M43157</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-17T06:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479871#M43158</link>
      <description>I finally think the sentence &lt;BR /&gt;"There must be white-space or other non-alphanumeric characters between any two conversion specifications." in the XOPEN specification &lt;BR /&gt;leaves no room for formats without delimiters,&lt;BR /&gt;so one can't write portable programs using "yyyymmdd with "%Y%m%d", although GNU apparently uses inherent &lt;BR /&gt;field width of 4-2-2 to parse it.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 06:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479871#M43158</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-17T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479872#M43159</link>
      <description>&lt;!--!*#--&gt;I also think that the requirement "There must be white-space or other non-alphanumeric characters between any two conversion specifications" makes format specification "%Y%m%d" illegal. Thanks for pointing it out. So, this is not a bug in the CRTL, as I thought, but rather an undefined behaviour.&lt;BR /&gt;&lt;BR /&gt;Having said that, the CRTL has no problem processing this call:&lt;BR /&gt;&lt;BR /&gt; strptime("2008x01x25", "%Yx%mx%d", ...)&lt;BR /&gt;&lt;BR /&gt;which as also illegal. It is obvious why the function fails for "%Y%m%d" and succeeds for "%Yx%mx%d". I just wish the undefined behaviour in both cases would be the same, and I don't mean failure in both cases :-)&lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies,&lt;BR /&gt;-Boris</description>
      <pubDate>Mon, 17 Aug 2009 14:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479872#M43159</guid>
      <dc:creator>WW304289</dc:creator>
      <dc:date>2009-08-17T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479873#M43160</link>
      <description>gcc 4.2.1 does not return an error with the example I posted.&lt;BR /&gt;&lt;BR /&gt;An older gcc did return the errors (shown).&lt;BR /&gt;&lt;BR /&gt;But again, a case can be made for standards compliance, and an equally good case can be made for gcc compliance.</description>
      <pubDate>Mon, 17 Aug 2009 14:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479873#M43160</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-08-17T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479874#M43161</link>
      <description>WW304289,&lt;BR /&gt;If You desparately need -because there are datasets containing these formats- , then the WGET source I found on this link&lt;BR /&gt; &lt;A href="http://sourceforge.jp/cvs/view/simplechart/wget/cmpt.cpp?view=co" target="_blank"&gt;http://sourceforge.jp/cvs/view/simplechart/wget/cmpt.cpp?view=co&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;contains a strptime working, which can replace the VMS CRTL by&lt;BR /&gt; cc/prefix=(all,except=strptime) .&lt;BR /&gt;&lt;BR /&gt;(needs a few #defines, or remove all other routines).</description>
      <pubDate>Mon, 17 Aug 2009 14:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479874#M43161</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-08-17T14:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479875#M43162</link>
      <description>&lt;!--!*#--&gt;"If You desparately need -because there are datasets containing these formats- , then the WGET source ..."&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestion. I've already implemented workaround (in fact, before I even posted this to an HP Forum) so, I'm all set. Just wanted to bring this problem to the attention of CRTL developers.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;-Boris</description>
      <pubDate>Mon, 17 Aug 2009 15:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479875#M43162</guid>
      <dc:creator>WW304289</dc:creator>
      <dc:date>2009-08-17T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479876#M43163</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] the WGET source I found on this link&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Wow.  You don't already _have_ wget source?&lt;BR /&gt;&lt;BR /&gt;      &lt;A href="http://antinode.info/dec/sw/wget.html" target="_blank"&gt;http://antinode.info/dec/sw/wget.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Who could live without wget?&lt;BR /&gt;&lt;BR /&gt;That link seems to have some wget 1.10.2&lt;BR /&gt;code, modified (into C++) for some particular&lt;BR /&gt;non-VMS system.&lt;BR /&gt;&lt;BR /&gt;(My wget-for-VMS builders seem to claim&lt;BR /&gt;HAVE_STRPTIME, so they're using the C RTL&lt;BR /&gt;strptime().)</description>
      <pubDate>Mon, 17 Aug 2009 17:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479876#M43163</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-17T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479877#M43164</link>
      <description>Boris,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Just wanted to bring this problem to the &lt;BR /&gt;&amp;gt;attention of CRTL developers.&lt;BR /&gt;&lt;BR /&gt;  Unfortunately you're unlikely to achieve that by posting anything here.&lt;BR /&gt;&lt;BR /&gt; Although this is an official HP web site, there is very little participation by HP engineers. If you want to make sure HP engineering knows about an issue, you'll need to raise a formal case with your local customer support centre.</description>
      <pubDate>Tue, 18 Aug 2009 04:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479877#M43164</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-08-18T04:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479878#M43165</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;In OpenVMS CRTL subroutine strptime(), when more than one format specifier is present, they must be separated by white space or a non-% [percent sign]/non-alphanumeric ordinary character.&lt;BR /&gt; &lt;BR /&gt;The call to strptime API with the following format does pass on OpenVMS as expected:  strptime("2008x01x25", "%Yx%mx%d", ...)&lt;BR /&gt; &lt;BR /&gt;Please find below a snapshot of description in the CRTL Reference Manual on OpenVMS&lt;BR /&gt; &lt;BR /&gt; " Any character other than the percent character (%) or a white-space character. This directive causes the function to read the next character.&lt;BR /&gt;    The character read must be the same as the character that comprises the directive. If the character is different, the function fails. " &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Manjula&lt;BR /&gt;[OpenVMS CRTL Engineering]&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Aug 2009 05:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479878#M43165</guid>
      <dc:creator>Manjula M</dc:creator>
      <dc:date>2009-08-18T05:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479879#M43166</link>
      <description>That the OpenVMS manuals and the C standards here say that this C code can be safely claimed as broken (or non-portable, non-compliant, or whatever euphemism) is quite clear.  &lt;BR /&gt;&lt;BR /&gt;That's not the nub of the question that I see here.&lt;BR /&gt;&lt;BR /&gt;The nub of the question is which standard(s) will be the ones OpenVMS will comply with?  &lt;BR /&gt;&lt;BR /&gt;Whether that's going to continue to be the Unix and C standards (as is presently the case), or whether those extensions and features and changes and, yes, oddities of gcc are (also) a valid compliance target?&lt;BR /&gt;&lt;BR /&gt;I'm locally dealing with far more gcc code going forward, and have thought about porting gcc or clang and the libraries over to OpenVMS.  (In addition to differences in strptime, the getopt_long call is entirely missing, for instance.)&lt;BR /&gt;&lt;BR /&gt;There is definitely no right answer here.  That's the fun of standards-compliance.  There are just so many of them around to choose from.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Aug 2009 15:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479879#M43166</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-08-18T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in strptime() function</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479880#M43167</link>
      <description>&amp;gt;the CRTL has no problem processing this call:&lt;BR /&gt;strptime("2008x01x25", "%Yx%mx%d", ...)&lt;BR /&gt;&lt;BR /&gt;HP-UX detects this as illegal.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ME: I suppose one way to allow no delimiters is to fully specify (or assume) the widths.&lt;BR /&gt;&lt;BR /&gt;This doesn't work any better on HP-UX.  strptime(3) says what Craig quoted.&lt;BR /&gt;&lt;BR /&gt;Not even %4.4Y%2.2m%2.2d works.</description>
      <pubDate>Wed, 18 Nov 2009 09:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/bug-in-strptime-function/m-p/4479880#M43167</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-18T09:14:37Z</dc:date>
    </item>
  </channel>
</rss>

