Artifacts Associated With Ticket f2e924e88181d602
Ticket change [ec7ece5e37] (rid 230401) by apnadkarni on 2024-08-20 05:37:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
The following writes emoji to a file in UTF16LE and reads the file back successfully. However, reads of a specific number of characters fails. ``` % set fd [open utf16.txt wb] file26c91f9a4c0 % puts -nonewline $fd [encoding convertto utf-16le A\U1F600] % close $fd % set fd [open utf16.txt]; fconfigure $fd -encoding utf-16le % read $fd A😀 % close $fd % set fd [open utf16.txt]; fconfigure $fd -encoding utf-16le % read $fd 2 error reading "file26c937c7370": invalid or incomplete multibyte or wide character % close $fd ``` Note the full file read succeeds but the read of two chars fails. Marked as important because UTF-16LE is native to Win32 API.
- foundin initialized to: "9.0b3"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
Error reading fixed number of characters from UTF16-LE file containing non-BMP chars
- type initialized to: "Bug"
Ticket change [d9dbee60ce] (rid 231071) by apnadkarni on 2024-08-23 08:35:56:
- closedate changed to: "2460545.85829742"
- closer changed to: "apnadkarni"
- icomment: "Fixed in [df6a7e1b38]."
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"