Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3b00e4f7908e1fb06d0a47ef1035dcb018b9a9ad349fc4377866b3db5160f594
Ticket: 8edfcedfa0069658e4175e0fc7bcbecf01e06802
binary encode base64 explodes multi-byte wrapchars
User & Date: dgp on 2020-03-27 22:22:41
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    TIP 317 created [binary encode base64].  Its options were not specified in fine
    detail, but there was an apparent implicit understanding that the functionality
    of the base64 package was being copied.
    
    They are not consistent treating multi-byte -wrapchar values.
    
    % package require base64
    2.4.2
    % puts \u00ca
    Ê
    
    % set code [base64::encode -maxlen 3 -wrapchar \u00ca abc]
    YWJÊj
    % base64::decode $code
    abc
    
    % set code [binary encode base64 -maxlen 3 -wrapchar \u00ca abc]
    YWJÊj
    % binary decode base64 $code
    invalid base64 character "Ã" at position 3
    
  5. foundin changed to: "8.6+"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "12. ByteArray Object"
  14. title changed to: "binary encode base64 explodes multi-byte wrapchars"
  15. type changed to: "Bug"