Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ee711f697a1ef3a1c82a905d05ab6b50952e7c29a7046f0265d9527defcbcd96
Ticket: a1bd37b7198f7bf51e8f1f554435045bf6cc8b68
clock (free)scan of ISO 8601 timestamp with literal T behaves strange
User & Date: sebres on 2020-05-27 15:38:05
Changes

  1. icomment:
    Well, in-between I found basically more things there, that must be fixed now:<ul>
    <li>mistakenly recognizing of other literals (not T only) between digits inside of some digits groups (without space or word-boundaries); also other timezones (like MST/WAST) have 7 as GMT offset, so then will be wrong considered as ISO in this case.</li>
    <li>parsing of integer (in lexer) as tNUMBER or tISOBASE is not restricted by the max length, so it can overflow to "valid" integer (and so can cause "correct" parse by totally incorrect string input), etc pp;</li>
    <li>missing tests covering failing conversion for both above mentioned cases;</li>
    <li>yacc/bison conflicts affected by issue must be reduced;</li>
    </ul>
    I tried to fix it in my re-implemented tclclockmod firstly (where it is already more strict as I already have some lookahead's to properly recognize a timezones) and I could better debug there,
    see comparison in branch [https://github.com/sebres/tclclockmod/compare/2ac4360e7ace21124a39a3de21caa2f39da88722...iso-TZ-bug-21|iso-TZ-bug-21].<br/>
    I'll try to rebase the patch to tcl-core, if I'd get it ready there.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"