Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0444edf20711b16a2c87e9809fb5634be63f41b5c503c2e8685e80eb584486f
Ticket: 9bad909c6ed4691bcad1886d710a923791a524a2
jis0208 encoding fails for ASCII input
User & Date: apnadkarni on 2021-06-12 06:18:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Question for someone well versed in encodings - is the following not supposed to work?
    
    % set x "abc\u543e"
    abc吾
    % encoding convertfrom jis0208 [encoding convertto jis0208 $x]
    ???吾
    
    Or
    
    % string equal \u543e [encoding convertfrom jis0208 [encoding convertto jis0208 \u543e]]
    1 (as expected)
    
    % string equal a [encoding convertfrom jis0208 [encoding convertto jis0208 a]]
    0 (broken)
    
    % binary encode hex [encoding convertto jis0208 a]
    2129
    
    That does not seem correct. At least as per http://x0213.org/codetable/jisx0213-2004-8bit-std.txt
    
    
    
    
    Also tried with some older versions - 8.5.17 and 8.6.3 fail in similar fashion.
    
  5. foundin changed to: "8.6.11"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  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: "apnadkarni"
  13. subsystem changed to: "11. Conversions from String"
  14. title changed to: "jis0208 encoding fails for ASCII input"
  15. type changed to: "Bug"