Skip to content
Tcl Source Code History Of Ticket 8663689908
Login

History Of Ticket 8663689908

Artifacts Associated With Ticket 8663689908

  1. Ticket change [dc39e41818] (rid 146243) by jan.nijtmans on 2016-04-08 12:09:48:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      % string is word \u203f
      1
      % regexp \\w \u203f
      0
      
      It appears that the character UNDERTIE (\u203f) is considered a word character by "string is word", but not in the regexp engine. In total, 9 characters are missing, all characters in the Unicode category Pc (Puntuation Connector)
      
    5. foundin initialized to: "8.6.5"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "jan.nijtmans"
    13. subsystem initialized to: "43. Regexp"
    14. title initialized to: "regexp \\w missing characters"
    15. type initialized to: "Bug"
  2. Ticket change [74635fb1cb] (rid 146244) by jan.nijtmans on 2016-04-08 12:10:14:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. priority changed to: "3 Low"
  3. Ticket change [0f31e50e0d] (rid 146254) by jan.nijtmans on 2016-04-08 12:29:58:

    1. closedate changed to: "2457487.0208163"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Fixed in all active branches"
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  4. Ticket change [10e29ceb9a] (rid 146255) by dgp on 2016-04-08 12:33:32:

    1. closedate changed to: "2457487.02328782"
    2. closer changed to: "dgp"
    3. icomment:
      
      Please notify Tom Lane (user 'tgl') about this change.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
  5. Ticket change [18425a2c56] (rid 148232) by dgp on 2016-07-22 21:18:47:

    1. closer changed to: "nobody"
    2. icomment:
      
      Tcl docs (re_syntax.n) say that the "CLASS-SHORTHAND ESCAPES"
      are defined:
      
       \w        [[:alnum:]_] (note underscore)
      
      By this description, \u203f ought to match
      regexp {\w} only if it matches {[[:alnum:]]}.
      
      % info patch
      8.6.6
      % regexp {\w} \u203f
      1
      % regexp {[[:alnum:]]} \u203f
      0
      
      Something in this collection of facts isn't right.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. resolution changed to: "Remind"
    7. status changed to: "Open"
  6. Ticket change [6e95fe7d69] (rid 192631) by jan.nijtmans on 2021-03-18 14:47:22:

    1. closedate changed to: "2459292.11623521"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      > Something in this collection of facts isn't right.
      
      Indeed, in this case the documentation is not correct. In the pre-unicode world, "word" characters were [a-zA-Z0-9_]. This is indeed the alphanumeric characters and the underscore.
      
      In the Unicode world, "word" characters are the alphanumeric characters and the "CONNECTOR_PUNCTUATION" characters (Pc). That's the underscore, but also 9 more:
      
      UNDERTIE ‿
      CHARACTER TIE ⁀
      INVERTED UNDERTIE ⁔
      PRESENTATION FORM FOR VERTICAL LOW LINE ︳
      PRESENTATION FORM FOR VERTICAL WAVY LOW LINE ︴
      DASHED LOW LINE ﹍
      CENTRELINE LOW LINE ﹎
      WAVY LOW LINE ﹏
      FULLWIDTH LOW LINE _
      
      
      So, the documentation should be adapted. The implementation is already doing this correctly. Done now in core-8-6-branch and up.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"