Skip to content
Tcl Source Code History Of Ticket 367bfdcf896f8cf4
Login

History Of Ticket 367bfdcf896f8cf4

Artifacts Associated With Ticket 367bfdcf896f8cf4

  1. Ticket change [2ddb94e1a3] (rid 188677) by oehhar on 2020-11-18 11:05:43:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Encoding GB18030 (Chines national standard 18030) is an encoding which is required for any software in China. This gives a certain preasure to support it.
      
      It is challenging, as the whole Unicode range is covered, but ordered in a different way.
      
      It is compatible to already present encoding GB2312 in a way, that GB2312 codepoints still apply.
      
      Jan Nijtmans wrote about the technical details in ticket [9575f0dec8]:
      
       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.
      
    5. foundin initialized to: "8.7"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "Add GB18030 encoding"
    16. type initialized to: "RFE"
  2. Ticket change [439103d6f5] (rid 188714) by jan.nijtmans on 2020-11-19 13:19:18:

    1. icomment:
      A lot simpler implementation would be to use MultiByteToWideChar/WideCharToMultiByte on Windows (codepage 54936) and iconv on other systems.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [d8cfe9579e] (rid 188716) by oehhar on 2020-11-19 13:40:37:

    1. icomment:
      So we could remove the whole encoding machinery and let the operating system do the job? That is great. The starkit file size will shring by a magnitude.
      So we could also address the IMHO open points:
      
         *   Return positions with not encodable points
         *   Return information on incomplete multibyte characters (specially at the end of the string) or invalid characters
         *   Return encoding errors
      
      Thank you,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"