Skip to content
Tcl Source Code History Of Ticket 624408ffffffffff
Login

History Of Ticket 624408ffffffffff

Artifacts Associated With Ticket 624408ffffffffff

  1. Ticket change [bd1f89dfb7] (rid 101859) by mic42 on 2002-10-17 02:05:59:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I noticed the following bug with clock format on win2k
      german, SP2.
      
      
      Timezone is:
      Westeuropäische Sommerzeit
      
      Now look at this:
      tclsh84.exe
      % clock format [clock seconds]
      Thu Oct 17 04:00:14 Westeuropäische Sommerzeit 2002
      
      This is wrong.
      % clock format [clock seconds] -format "%Z"
      Westeuropäische Sommerzeit
      
      % encoding convertfrom utf-8 [clock format [clock
      seconds] -format "%Z"]]
      Westeuropäische Sommerzeit
      
      % encoding system
      cp1252
      
      So the timezone string gets converted to utf-8 twice,
      which is wrong. 
      
      I suspect the combination of:
      generic\tclClock.c line 370
      and
      win/tclWinTime.c line 473 / 485
      as the source of trouble.
      
      
      
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mic42"
    9. subsystem initialized to: "06. Time Measurement"
    10. title initialized to: "clock format double utf-8 conversion "
    11. type initialized to: "Bug"
  2. Ticket change [4557201f96] (rid 99335) by nobody on 2003-05-14 18:32:33:

    1. icomment:
      Logged In: NO 
      
      [RS] Same problem on French Windows, as reported by 
      David Zolli in the chat:
      clock format [clock second] == Wed May 14 13:20:24 Paris, 
      Madrid (heure d'été) 2003
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [efb0f08057] (rid 109043) by mic42 on 2003-05-14 22:55:32:

    1. icomment:
      Logged In: YES 
      user_id=302287
      
      Possible Patch (could only check on Win2k):
      Not best style but FormatClock is litered with #ifdef's anyway.
      
      in tclClock.c/end of FormatClock:
          /*
           * Convert the time to UTF from external encoding [Bug:
      3345]
           */
      #if !defined(WIN32)
          Tcl_DStringInit(&uniBuffer);
          Tcl_ExternalToUtfDString(NULL, buffer.string, -1,
      &uniBuffer);
      
          Tcl_SetStringObj(Tcl_GetObjResult(interp),
      uniBuffer.string, -1);
      
          Tcl_DStringFree(&uniBuffer);
      #else
          /*
           * No need for a conversion, just keep as it is.
           */
          Tcl_SetStringObj(Tcl_GetObjResult(interp),
      buffer.string, -1);
      #endif
          Tcl_DStringFree(&buffer);
          return TCL_OK;
      
      
    2. login: "mic42"
    3. mimetype: "text/plain"
    4. username: "mic42"
  4. Ticket change [21eb7b8903] (rid 130662) by kennykb on 2003-05-19 02:50:21:

    1. closedate changed to: "2003-05-18T19:50:21"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Modified TclpStrftime to return UTF-8 results everywhere; this
      seemed more sensible than introducing yet another platform
      specific test.
      
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"