Tilde characters are not translated to ShiftJIS correctly
Closed / Fixed218632ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:25
OriginalBugID: 1526 Bug
Version: 8.1a2
SubmitDate: '1999-03-18'
LastModified: '1999-05-20'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: hershey
OS: Linux-Red Hat
OSVersion: 5.0
Machine: Other
FixedDate: '1999-03-18'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'
Name:
Ben Elliston
Extensions:
None
CustomShell:
None
ReproducibleScript:
% encoding convertto shiftjis ~
ObservedBehavior:
When reading strings from Japanese file systems which contain tilde
characters,
Tcl was translating them to the fallback character `?'.
DesiredBehavior:
Tilde in ASCII should be mapped to tilde in ShiftJIS and vice-versa.
Patch:
1999-01-19 Ben Elliston <[email protected]>
* tools/encoding/shiftjis.txt: Map tilde in ShiftJIS to tilde in
Unicode.
* library/encoding/shiftjis.enc: Regenerate.
Index: library/encoding/shiftjis.enc
===================================================================
RCS file: /cvs/cvsfiles/devo/tcl8.1/library/encoding/shiftjis.enc,v
retrieving revision 1.1.2.1
diff -c -r1.1.2.1 shiftjis.enc
*** shiftjis.enc 1998/12/16 23:28:18 1.1.2.1
--- shiftjis.enc 1999/01/19 07:44:21
***************
*** 9,15 ****
0040004100420043004400450046004700480049004A004B004C004D004E004F
0050005100520053005400550056005700580059005A005B005C005D005E005F
0060006100620063006400650066006700680069006A006B006C006D006E006F
! 0070007100720073007400750076007700780079007A007B007C007D203E007F
0080000000000000000000850086008700000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000FF61FF62FF63FF64FF65FF66FF67FF68FF69FF6AFF6BFF6CFF6DFF6EFF6F
--- 9,15 ----
0040004100420043004400450046004700480049004A004B004C004D004E004F
0050005100520053005400550056005700580059005A005B005C005D005E005F
0060006100620063006400650066006700680069006A006B006C006D006E006F
! 0070007100720073007400750076007700780079007A007B007C007D007E007F
0080000000000000000000850086008700000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000FF61FF62FF63FF64FF65FF66FF67FF68FF69FF6AFF6BFF6CFF6DFF6EFF6F
Index: tools/encoding/shiftjis.txt
===================================================================
RCS file: /cvs/cvsfiles/devo/tcl8.1/tools/encoding/shiftjis.txt,v
retrieving revision 1.1.2.1
diff -c -r1.1.2.1 shiftjis.txt
*** shiftjis.txt 1998/12/16 23:28:19 1.1.2.1
--- shiftjis.txt 1999/01/19 07:44:52
***************
*** 150,156 ****
0x7B 0x007B # LEFT CURLY BRACKET
0x7C 0x007C # VERTICAL LINE
0x7D 0x007D # RIGHT CURLY BRACKET
! 0x7E 0x203E # OVERLINE
0x8140 0x3000 # IDEOGRAPHIC SPACE
0x8141 0x3001 # IDEOGRAPHIC COMMA
0x8142 0x3002 # IDEOGRAPHIC FULL STOP
--- 150,156 ----
0x7B 0x007B # LEFT CURLY BRACKET
0x7C 0x007C # VERTICAL LINE
0x7D 0x007D # RIGHT CURLY BRACKET
! 0x7E 0x007E # TILDE
0x8140 0x3000 # IDEOGRAPHIC SPACE
0x8141 0x3001 # IDEOGRAPHIC COMMA
0x8142 0x3002 # IDEOGRAPHIC FULL STOP
PatchFiles:
shiftjis.txt
shiftjis.enc
I was unable to verify this with Unicode standards documentation.
03/18/1999 19:57 - stanton - I have applied the patch.
welch Closed ticket [218632ffff].
[History diff]2000-10-26 08:26:09
dgp Ticket [218632ffff]: 3 changes
[History diff]2001-04-06 03:22:07
Log in (anonymous is fine) to add a comment.