Overview
| Artifact ID: | 93b1cfdc7ed3701e81a3a92f1d62e7a7e64cba1f234e1ac6f45ad25e46d7996f |
|---|---|
| Ticket: | 6978c01b652ac87cfc7913f5e534825f15824768
Channel encoding difference 8.6 <-> 9.0 |
| User & Date: | oehhar on 2022-08-31 11:44:21 |
Changes
- icomment:
Ok, thank you for the information. So, TIP633 makes sense, if an error is expected. I also tried the other way around, e.g. receiving an invalid sequence. My standard example is to receive an incomplete UTF-8 sequence. Here is my test script for two interpreters: <verbatim> set serverhandle [socket -server connect 30000] proc connect {handle args} { if {[catch { fconfigure $handle -encoding utf-8 -buffering none puts "Read data: '[gets $handle]'" close $handle } res]} { puts stderr "Read error: $res" } } vwait forever </verbatim> <verbatim> set clienthandle [socket localhost 30000] fconfigure $clienthandle -encoding binary puts -nonewline $clienthandle\ [string range [encoding convertto utf-8 "AÄ"] 0 end-1] close $clienthandle </verbatim> Here, 8.6.12 and 9.0 both return: <verbatm> Read data: 'AÃ' </verbatim> In case of 9.0, this should be "A" and an error, which is not raised. The 8.6 case is "A" and then the incomplete sequence as raw byte. So, this looks boguous too. ----- I also wondered, how those changes are covered by TIP 601, as I don't find anything about it in TIP 601. It is an indirect consequence probably. - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"