Skip to content
Tcl Source Code History Of Ticket 769895ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 769895ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 769895ffffffffffffffffffffffffffffffffff

  1. Ticket change [e8d9931cd9] (rid 104714) by dgp on 2003-07-11 21:43:11:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Docs for Tcl_UtfPrev(src, start) say:
      
           Given src, a pointer to some location  in  a 
      UTF-8  string,
           Tcl_UtfPrev  returns a pointer to the previous
      UTF-8 charac-
           ter in the string.  This function will  not  back
       up  to  a
           position  before  start,  the start of the UTF-8
      string.  If
           src was already at start, the return value will be
      start.
      
      The source code comments just before Tcl_UtfPrev
      also say:
      
       *      Given a pointer to some current location in a
      UTF-8 string,
       *      move backwards one character.  This works
      correctly when the
       *      pointer is in the middle of a UTF-8 character.
      
      So the claim is that the src argument can be a pointer
      to a trailing byte of a multi-byte character.
      
      However, that does not appear to be what the
      routine really does.  Instead, the routine starts
      a search at one byte before the src argument, and
      searches backward for the beginning of a UTF8
      character byte-sequence and returns that.
      
      So, for example, 
      
          CONST char *word="ab\303\521";
          Tcl_UtfPrev(word+3,word);
      
      will return word+2 (pointer to the é character in UTF8)
      and not word+1 (pointer to the 'b') as I would expect.
      
      One feature of the current Tcl_UtfPrev()
      implementation is that it is currently safe
      to pass in a 'src' argument, that points one
      byte past the end of the allocated buffer,
      which can be useful, even though it seems
      counter to the documentation.
      
      Either implementation or documentation
      ought to be changed to bring them into
      agreement.
      
      
      
    4. foundin initialized to: "obsolete: 8.4.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "44. UTF-8 Strings"
    10. title initialized to: "Tcl_UtfPrev not as documented ?"
    11. type initialized to: "Bug"
  2. Ticket change [051adf18fd] (rid 88998) by dgp on 2003-07-12 04:43:34:

    1. assignee changed to: "hobbs"
  3. Ticket change [7c11e33d0f] (rid 97012) by hobbs on 2003-07-17 07:24:36:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I think docs should be changed.  IIRC there are uses of this 
      that only Tk makes use of that have to be checked against.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  4. Ticket change [a6b55502d2] (rid 98651) by dgp on 2003-07-17 10:08:13:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Yes, that is the consensus.
      Clarify the docs to accurately
      describe existing behavior.
      claiming...
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dgp"
  5. Ticket change [9ee9d78718] (rid 96558) by dgp on 2003-07-18 12:59:07:

    1. priority changed to: "8"
  6. Ticket change [a44dcae1ac] (rid 110188) by dkf on 2003-07-19 05:10:46:

    1. assignee changed to: "dkf"
    2. priority changed to: "9 Immediate"
  7. Ticket change [527a6bc074] (rid 126324) by dkf on 2003-07-19 05:18:36:

    1. closedate changed to: "2003-07-18T22:18:36"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Minor tightening of Tcl_UtfNext() done at same time.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"