Artifacts Associated With Ticket 9575f0dec8
Ticket change [19c38d5b5b] (rid 188291) by oehhar on 2020-11-02 10:07:35:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
TCL does not feature a GB18030 encoding. Nevertheless, this encoding is compatible on the 16 bit unicode plane to GB2312. (See Wikipedia: [https://en.wikipedia.org/wiki/GB_18030]). The 16 bit unicode plane of GB18030 is mandatory for all software products in China, so support may be important. The proposal of this ticket is to map GB18030 to GB2312 in http::CharsetToEncoding. If GB18030 is used as a specified charset in a http transaction, at least 16 bit codes are correctly decoded. Any other code is anyway not representable by TCL8.6.10. Example of a http reply header: <verbatim> Content-Type: text;charset=GB18030 </verbatim> Just an idea. I am not deeply in this subject but this may help some people from this region. Thank you, Harald
- foundin initialized to: "8.6.10"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "29. http Package"
- title initialized to: "http::CharsetToEncoding: map GB18030 to GB2312"
- type initialized to: "Bug"
Ticket change [7b1166b2d4] (rid 188655) by oehhar on 2020-11-18 08:10:28:
- closedate changed to: "2459171.84060697"
- closer changed to: "oehhar"
- icomment:
After thinking on it, it does not feel like a good idea. It is incomplete and any interested application may implement that on its own. Thank you, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "oehhar"
Ticket change [31fe70a57f] (rid 188668) by jan.nijtmans on 2020-11-18 09:18:42:
- closedate changed to: "2459171.88799221"
- closer changed to: "jan.nijtmans"
- icomment: "How about adding a real GB18030 encoding to 8.7?"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [c74023472b] (rid 188669) by oehhar on 2020-11-18 09:45:44:
- closedate changed to: "2459171.90676156"
- closer changed to: "oehhar"
- icomment:
Yes of cause, preferable. I asked about that on clt. The answer was, that that is not possible due to the required 32 bit unicode. Thank you, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
Ticket change [64de687635] (rid 188672) by jan.nijtmans on 2020-11-18 10:41:24:
- closedate changed to: "2459171.94541904"
- closer changed to: "jan.nijtmans"
- icomment:
Well, how about TIP #389 then? In Tcl 8.7 we can use characters > U+FFFF by storing them as surrogate pairs. So a single (multibyte) character could result in 2 surrogates. That's not possible now, with the current "*.enc" files. Currently there are 4 types of "*.enc" files: Single-byte ("S"), double-byte("D") escape-driven("E") and multi-byte("M"). So, we would need a 5th type (e.g. "U"), I don't see why that wouldn't be possible. For Tcl 9, we have 32-bit characters, but still we would need the same additional format: we cannot do it with the existing "*.enc" files. - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [d9e722d1ed] (rid 188678) by oehhar on 2020-11-18 11:06:28:
- closedate changed to: "2459171.96283495"
- closer changed to: "oehhar"
- icomment:
Thank you, Jan, for the answer. This would be great to have GB18030 as encoding. It feels like a certain way to go. A new RFE [367bfdcf8] is opened with your initial information included. Thank you, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"