Overview
| Artifact ID: | ca92f08d4b04deff98826a4eeaf2cd812d680c3c8571b329b488c3a9bf4c26cf |
|---|---|
| Ticket: | d433c0e0add0496ef4a7d73c8580149605dadff6
TCL_UTF_MAX == 4 problems |
| User & Date: | chw on 2019-11-13 09:51:51 |
Changes
- icomment:
Again on Debian 9, core-8-6-branch [b5633ba3bd] using $ cd .../unix ; CC="cc -DTCL_UTF_MAX=4" ./configure --prefix=/tmp/mytcl --disable-static ; make $ ./tclsh % set X "\U1F602" the gnome-terminal hangs and the strace dump is write(1, "\360\302\230\302\230\302\202\r\n", 9) Using surrogate pair notation outputs the expected emoji % set X "\uD83D\uDE02" and strace dump is write(1, "\360\237\230\202\r\n", 6) = 6 Now let's do the opposite direction % set X "\uD83D\uDE02" % set F [open OUT w] % puts -nonewline $F $X % close $F % set F [open OUT] % set Y [read $F] ; close $F % set Y the gnome-terminal hangs again and the strace dump is write(1, "\303\260\302\230\302\230\302\202\r\n", 10)
- login: "chw"
- mimetype: "text/plain"