• =?UTF-8?B?UmU6IEZvdW5kIGNyYXNoIG9uIENoaW5lc2UgdW5pY29kZeKAnOWkp+S4nOWun

    From fei jay@21:1/5 to All on Tue Sep 13 18:32:53 2022
    在 2022年9月13日星期二 UTC+8 23:11:12,<[email protected]> 写道:
    From: fei jay <[email protected]>
    Date: Tue Sep 13 12:00:41 GMT 2022
    Subject: =?UTF-8?B?Rm91bmQgY3Jhc2ggb24gQ2hpbmVzZSB1bmljb2Rl4oCc5aSn5Lic5a6d6ams4oCd77yMYQ==?=


    #0 0x00007fb7c2f7d418 in Tcl_UtfToUniChar () from libtcl8.6.so
    #1 0x00007fb7c2f7ee1f in TclUtfToUCS4 () from libtcl8.6.so
    #2 0x00007fb7c2f7f244 in Tcl_UtfToLower () from libtcl8.6.so
    #3 0x00007fb7c2f1ebba in ?? () from libtcl8.6.so
    #4 0x00007fb7c2e84aa6 in TclNRRunCallbacks () from libtcl8.6.so
    #5 0x00007fb7c2e86273 in TclEvalEx () from libtcl8.6.so
    #6 0x00007fb7c2e868b3 in Tcl_EvalEx () from libtcl8.6.so
    #7 0x00007fb7c2e868f5 in Tcl_Eval () from libtcl8.6.so



    I'm using tcl 8.6.12

    in tclsh:
    set s \U5927\U4E1C\U5B9D\U9A6C
    shows 4 generic characters

    however in tkcon it displays properly
    大东宝马

    I'm not getting any errors.

    Dave B
    hi,Dave B
    Can tclsh call the same callstack?how to do it?The crash I test, without "大东宝马" is ok

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Gollwitzer@21:1/5 to All on Wed Sep 14 07:36:56 2022
    Am 14.09.22 um 03:32 schrieb fei jay:
    在 2022年9月13日星期二 UTC+8 23:11:12,<[email protected]> 写道:
    From: fei jay <[email protected]>
    Date: Tue Sep 13 12:00:41 GMT 2022
    Subject: =?UTF-8?B?Rm91bmQgY3Jhc2ggb24gQ2hpbmVzZSB1bmljb2Rl4oCc5aSn5Lic5a6d6ams4oCd77yMYQ==?=


    #0 0x00007fb7c2f7d418 in Tcl_UtfToUniChar () from libtcl8.6.so
    #1 0x00007fb7c2f7ee1f in TclUtfToUCS4 () from libtcl8.6.so
    #2 0x00007fb7c2f7f244 in Tcl_UtfToLower () from libtcl8.6.so
    #3 0x00007fb7c2f1ebba in ?? () from libtcl8.6.so
    #4 0x00007fb7c2e84aa6 in TclNRRunCallbacks () from libtcl8.6.so
    #5 0x00007fb7c2e86273 in TclEvalEx () from libtcl8.6.so
    #6 0x00007fb7c2e868b3 in Tcl_EvalEx () from libtcl8.6.so
    #7 0x00007fb7c2e868f5 in Tcl_Eval () from libtcl8.6.so



    I'm using tcl 8.6.12

    in tclsh:
    set s \U5927\U4E1C\U5B9D\U9A6C
    shows 4 generic characters

    however in tkcon it displays properly
    大东宝马

    I'm not getting any errors.

    Dave B
    hi,Dave B
    Can tclsh call the same callstack?how to do it?The crash I test, without "大东宝马" is ok
    You haven't shared your code, that crashed. It is therefore impossible
    for anyone to reproduce the problem.

    Create a short example code that crashes for you and show it here.

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From fei jay@21:1/5 to All on Wed Sep 14 02:57:36 2022
    在 2022年9月14日星期三 UTC+8 13:38:54,<Christian Gollwitzer> 写道:
    Am 14.09.22 um 03:32 schrieb fei jay:
    在 2022年9月13日星期二 UTC+8 23:11:12,<[email protected]> 写道:
    From: fei jay <[email protected]>
    Date: Tue Sep 13 12:00:41 GMT 2022
    Subject: =?UTF-8?B?Rm91bmQgY3Jhc2ggb24gQ2hpbmVzZSB1bmljb2Rl4oCc5aSn5Lic5a6d6ams4oCd77yMYQ==?=


    #0 0x00007fb7c2f7d418 in Tcl_UtfToUniChar () from libtcl8.6.so
    #1 0x00007fb7c2f7ee1f in TclUtfToUCS4 () from libtcl8.6.so
    #2 0x00007fb7c2f7f244 in Tcl_UtfToLower () from libtcl8.6.so
    #3 0x00007fb7c2f1ebba in ?? () from libtcl8.6.so
    #4 0x00007fb7c2e84aa6 in TclNRRunCallbacks () from libtcl8.6.so
    #5 0x00007fb7c2e86273 in TclEvalEx () from libtcl8.6.so
    #6 0x00007fb7c2e868b3 in Tcl_EvalEx () from libtcl8.6.so
    #7 0x00007fb7c2e868f5 in Tcl_Eval () from libtcl8.6.so



    I'm using tcl 8.6.12

    in tclsh:
    set s \U5927\U4E1C\U5B9D\U9A6C
    shows 4 generic characters

    however in tkcon it displays properly
    大东宝马

    I'm not getting any errors.

    Dave B
    hi,Dave B
    Can tclsh call the same callstack?how to do it?The crash I test, without "大东宝马" is ok
    You haven't shared your code, that crashed. It is therefore impossible
    for anyone to reproduce the problem.

    Create a short example code that crashes for you and show it here.

    Christian
    I found 8.6.12 this commit missing and we apply this to 8.6.12,the crash fixed
    “大东宝马‘’ ´ó¶«±¦Âí] ´ó¶«±¦Âí has char in CP-1252

    invalid UTF-8 characters https://github.com/tcltk/tcl/commit/3af16acbcb63ea2935d71b905371252560dc4659

    SHA-1: 3af16acbcb63ea2935d71b905371252560dc4659

    * Treat invalid UTF-8 characters in the range 0x80-0x9F as cp1252: See [https://en.wikipedia.org/wiki/UTF-8]. To be added to TIP #389

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Grunwald@21:1/5 to [email protected] on Wed Sep 14 12:21:51 2022
    On 13/09/2022 16:11, [email protected] wrote:
    From: fei jay <[email protected]>
    Date: Tue Sep 13 12:00:41 GMT 2022
    Subject: =?UTF-8?B?Rm91bmQgY3Jhc2ggb24gQ2hpbmVzZSB1bmljb2Rl4oCc5aSn5Lic5a6d6ams4oCd77yMYQ==?=


    #0 0x00007fb7c2f7d418 in Tcl_UtfToUniChar () from libtcl8.6.so
    #1 0x00007fb7c2f7ee1f in TclUtfToUCS4 () from libtcl8.6.so
    #2 0x00007fb7c2f7f244 in Tcl_UtfToLower () from libtcl8.6.so
    #3 0x00007fb7c2f1ebba in ?? () from libtcl8.6.so
    #4 0x00007fb7c2e84aa6 in TclNRRunCallbacks () from libtcl8.6.so
    #5 0x00007fb7c2e86273 in TclEvalEx () from libtcl8.6.so
    #6 0x00007fb7c2e868b3 in Tcl_EvalEx () from libtcl8.6.so
    #7 0x00007fb7c2e868f5 in Tcl_Eval () from libtcl8.6.so



    I'm using tcl 8.6.12

    in tclsh:
    set s \U5927\U4E1C\U5B9D\U9A6C
    shows 4 generic characters

    however in tkcon it displays properly
    大东宝马

    I'm not getting any errors.

    Dave B


    Same here, using tcl 8.6.9 on Linux - except that I get proper display
    with tclsh too.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ricardo kozmate.net@21:1/5 to All on Sun Sep 18 15:44:52 2022
    Em 14/09/22 12:21, Alan Grunwald escreveu:
    I'm using tcl 8.6.12

    in tclsh:
    set s \U5927\U4E1C\U5B9D\U9A6C
    shows 4 generic characters

    however in tkcon it displays properly
    大东宝马

    I'm not getting any errors.

    Dave B


    Same here, using tcl 8.6.9 on Linux - except that I get proper display
    with tclsh too.

    Using 8.6.12 I get the same characters on tclsh. I presume it depends on
    the fonts available at the shell, not on TCL itself.

    --
    {ricardo from kozmate.net}

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)