Overview
| Artifact ID: | 9c2ea6945a3eaac65132a1ae78b8e448048ae76f |
|---|---|
| Ticket: | 218024ffffffffffffffffffffffffffffffffff
format command does not appear able to insert 16 bit charact |
| User & Date: | nobody on 2000-10-26 00:52:18 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1173 RFE Version: 8.1b1 SubmitDate: '1999-02-09' LastModified: '1999-02-10' Severity: MED Status: Closed Submitter: pat ChangedBy: pat OS: Windows NT OSVersion: 4.0sp3 Machine: X86 FixedDate: '2000-10-25' ClosedDate: '1999-02-10' Name: Gerald W. Lester Extensions: N/A CustomShell: None DesiredBehavior: According to the 8.1b1 documentation, the %c specifier in the format command inserts an 8 bit character, however there appears no specifier to insert a 16 bit character (note %u is used to insert an unsigned integer). Work around: puts [subst -nocommands -novariables [format {...\u%d...} $char]] instead of: puts [format {...%U...} $char] 02/10/1999 10:54 - pat - Comment from Scott Stanton: The documentation is incorrect. Format inserts a 16-bit Unicode character into the string (in UTF-8 form). So you should be able to say something like: set x \u3254 set y [format {....%c....} $x] I have updated the documentation to reflect this behavior. - foundin changed to: "obsolete: 8.1b1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
format command does not appear able to insert 16 bit charact
- type changed to: "Bug"