Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f646b575aea1137b8808a463f226e4fabcc6095df0ecdf9b04917d1451eadd48
Ticket: 5b5ba0aa0d0c78636f2fef90558e2b84c3e4bae4
macJapanese encoding is incomplete
User & Date: gingerbeardman on 2021-11-17 10:23:14
Changes

  1. icomment:
    Thanks for the link to Apple's Tcl encoding document, I was not aware of it. The mapping is the same as the one I quoted but the Tcl document has implementation details. It's good! No correction needed.
    
    So, I did some more investigation. My code operated normally over stdin, so in fact this issue was because I was not treating the input file as binary to the required degree.
    
    I was doing:
    
    	set in [open $f rb]
    
    ...but that was not enough.
    
    I also required:
    
    	fconfigure $in -translation binary
    
    ...to get everything working correctly. I'm too new to Tcl to understand why rb alone was not enough.
    
    All to say, I no longer think there is a bug. Sorry for the false alarm!
    
    I don't have a need for any further encodings, the existing set is good.
    
  2. login: "gingerbeardman"
  3. mimetype: "text/plain"
  4. username: "gingerbeardman"