Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ada8006fc6fab912a68ddf0b945d384c64b37e42deb04394259eb0db78ca0b7b
Ticket: fb642c54bc58b31daafba9ae495ded4b0417d9bc
Incorrect download of compressed encoded data
User & Date: sebres on 2018-03-26 12:12:35
Changes

  1. closedate changed to: "2458204.00874109"
  2. closer changed to: "sebres"
  3. icomment:
    You're trying to write file using current system encoding (which is UTF-8, I assume).
    
    So just change:
    <pre>
    - <b style="color:red">set out [open $file w]</b>
    + <b style="color:green">set out [open $file wb]</b>
    </pre>
    And you'll get it correctly.
    
    Note, this server does not provide the charset (just says text/plain in content-type, but it says nothing about what it is).
    So the target encoding is undefined, wget will use binary here (so writes as is).
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"