Boost C++ Libraries: Ticket #596: make timezone csv file C/C++ compatible https://svn.boost.org/trac10/ticket/596 <pre class="wiki">The timezone database file "date_time_zonespec.csv" is used for the boost date/time library, and is nominally intended to be read as a data file, by boost code, and possibly also by Excel or similar software. Because the file consists of quoted Ansi character strings, it could also be treated like an initialization value for a char *str[] string array, and used via an #include. However, since the data lines do not end with a comma, the last field of each line will get compile-time concatenated with the first field of the next line, thus thwarting this usage. I propose that either (1) the file be changed to add a comma at the end of each line, or (2) the file be changed to add an empty "" string as an extra (dummy) field at the end of each line. Method (2) has the advantage of remaining CSV file compatible, while still being a valid list of quoted strings for char *str[] string array. The dummy zero-length string at the end of each line would be compile-time concatenated with the first field of the next line, effectively eliminating it. Method (1) has the advantage of not adding an extra dummy field. As used by the boost code, the CSV parser would have to be modified to simply ignore the last (dummy) field or the trailing comma, whichever was implemented. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/596 Trac 1.4.3 Daryle Walker Fri, 03 Aug 2007 12:04:45 GMT component changed; severity set https://svn.boost.org/trac10/ticket/596#comment:1 https://svn.boost.org/trac10/ticket/596#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">date_time</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Problem</span> </li> </ul> Ticket James E. King, III Thu, 18 Jan 2018 14:21:13 GMT owner, status, description changed https://svn.boost.org/trac10/ticket/596#comment:2 https://svn.boost.org/trac10/ticket/596#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">James E. King, III</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/596?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket James E. King, III Thu, 18 Jan 2018 14:24:50 GMT status, resolution changed https://svn.boost.org/trac10/ticket/596#comment:3 https://svn.boost.org/trac10/ticket/596#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Resolving wontfix due to lack of any additional comment or support for the idea. The tz database is flawed anyway, since if time zones change and then you apply timezone processing, it should apply the timezone rule that was in force at the time, not the current rule. Right now only the current rule is applied. So there is a github issue tracking changes here. </p> <p> <a class="ext-link" href="https://github.com/boostorg/date_time/issues/67"><span class="icon">​</span>https://github.com/boostorg/date_time/issues/67</a> </p> Ticket