Artifact
b945cc6179cfd88de515215aca5b01c0dae98181194139cf050e0aa4a772b6c1:
Wiki page
[Unsupported icu command] by
apnadkarni
2024-06-18 17:09:38.
0000: 44 20 32 30 32 34 2d 30 36 2d 31 38 54 31 37 3a D 2024-06-18T17:
0010: 30 39 3a 33 38 2e 37 30 36 0a 4c 20 55 6e 73 75 09:38.706.L Unsu
0020: 70 70 6f 72 74 65 64 5c 73 69 63 75 5c 73 63 6f pported\sicu\sco
0030: 6d 6d 61 6e 64 0a 4e 20 74 65 78 74 2f 78 2d 6d mmand.N text/x-m
0040: 61 72 6b 64 6f 77 6e 0a 50 20 38 34 66 64 65 31 arkdown.P 84fde1
0050: 39 64 35 65 36 35 62 64 62 64 32 35 62 32 66 63 9d5e65bdbd25b2fc
0060: 61 62 66 37 66 31 64 63 39 64 38 62 35 66 32 34 abf7f1dc9d8b5f24
0070: 61 36 30 32 35 66 31 33 38 36 61 35 37 37 62 65 a6025f1386a577be
0080: 37 36 61 35 32 62 63 37 63 65 0a 55 20 61 70 6e 76a52bc7ce.U apn
0090: 61 64 6b 61 72 6e 69 0a 57 20 33 37 34 35 0a 54 adkarni.W 3745.T
00a0: 68 69 73 20 69 73 20 61 20 70 72 6f 70 6f 73 61 his is a proposa
00b0: 6c 20 74 6f 20 61 64 64 20 61 20 60 74 63 6c 3a l to add a `tcl:
00c0: 3a 75 6e 73 75 70 70 6f 72 74 65 64 3a 3a 69 63 :unsupported::ic
00d0: 75 60 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 54 63 u` command to Tc
00e0: 6c 20 39 2e 0d 0a 54 68 65 20 70 72 69 6d 61 72 l 9...The primar
00f0: 79 20 67 6f 61 6c 20 69 73 20 74 6f 20 68 65 6c y goal is to hel
0100: 70 20 77 69 74 68 20 6d 69 67 72 61 74 69 6f 6e p with migration
0110: 20 6f 66 20 54 63 6c 20 38 20 73 63 72 69 70 74 of Tcl 8 script
0120: 73 20 74 6f 20 54 63 6c 20 39 2e 0d 0a 41 20 28 s to Tcl 9...A (
0130: 6d 75 63 68 29 20 6c 65 73 73 65 72 20 62 65 6e much) lesser ben
0140: 65 66 69 74 20 69 73 20 74 6f 20 62 65 20 61 62 efit is to be ab
0150: 6c 65 20 74 6f 20 65 78 70 65 72 69 6d 65 6e 74 le to experiment
0160: 20 77 69 74 68 20 49 43 55 20 66 75 6e 63 74 69 with ICU functi
0170: 6f 6e 73 0d 0a 66 6f 72 20 68 61 6e 64 6c 69 6e ons..for handlin
0180: 67 20 73 74 72 69 6e 67 73 20 61 6e 64 20 65 6e g strings and en
0190: 63 6f 64 69 6e 67 73 2e 0d 0a 0d 0a 23 23 20 4d codings.....## M
01a0: 6f 74 69 76 61 74 69 6f 6e 0d 0a 0d 0a 54 68 65 otivation....The
01b0: 72 65 20 61 72 65 20 74 77 6f 20 63 68 61 6e 67 re are two chang
01c0: 65 73 20 69 6e 20 54 63 6c 20 39 20 74 68 61 74 es in Tcl 9 that
01d0: 20 74 6f 67 65 74 68 65 72 20 63 61 6e 20 70 72 together can pr
01e0: 65 76 65 6e 74 20 65 76 65 6e 20 73 6f 75 72 63 event even sourc
01f0: 69 6e 67 0d 0a 54 63 6c 20 38 20 73 63 72 69 70 ing..Tcl 8 scrip
0200: 74 73 2e 0d 0a 0d 0a 2d 20 43 68 61 6e 67 65 20 ts.....- Change
0210: 69 6e 20 74 68 65 20 60 73 6f 75 72 63 65 60 20 in the `source`
0220: 65 6e 63 6f 64 69 6e 67 20 63 6f 6d 6d 61 6e 64 encoding command
0230: 20 74 6f 20 75 73 65 20 55 54 46 2d 38 20 62 79 to use UTF-8 by
0240: 20 64 65 66 61 75 6c 74 2e 0d 0a 0d 0a 2d 20 54 default.....- T
0250: 68 65 20 69 6e 74 72 6f 64 75 63 74 69 6f 6e 20 he introduction
0260: 6f 66 20 74 68 65 20 60 73 74 72 69 63 74 60 20 of the `strict`
0270: 65 6e 63 6f 64 69 6e 67 20 70 72 6f 66 69 6c 65 encoding profile
0280: 20 66 6f 72 20 28 6d 6f 73 74 29 20 49 2f 4f 2e for (most) I/O.
0290: 0d 0a 0d 0a 54 68 65 20 74 77 6f 20 63 68 61 6e ....The two chan
02a0: 67 65 73 20 61 62 6f 76 65 20 6d 65 61 6e 20 74 ges above mean t
02b0: 68 61 74 20 65 76 65 6e 20 61 20 73 69 6e 67 6c hat even a singl
02c0: 65 20 63 6f 70 79 72 69 67 68 74 20 28 55 2b 30 e copyright (U+0
02d0: 30 41 39 29 20 63 68 61 72 61 63 74 65 72 0d 0a 0A9) character..
02e0: 69 6e 20 61 6e 20 6f 74 68 65 72 77 69 73 65 20 in an otherwise
02f0: 41 53 43 49 49 20 66 69 6c 65 20 77 69 6c 6c 20 ASCII file will
0300: 70 72 65 76 65 6e 74 20 74 68 65 20 73 63 72 69 prevent the scri
0310: 70 74 20 66 72 6f 6d 20 62 65 69 6e 67 20 6c 6f pt from being lo
0320: 61 64 65 64 20 69 66 0d 0a 74 68 65 20 66 69 6c aded if..the fil
0330: 65 20 69 73 20 69 6e 20 49 53 4f 38 38 35 39 2d e is in ISO8859-
0340: 31 20 65 6e 63 6f 64 69 6e 67 20 61 73 20 69 73 1 encoding as is
0350: 20 63 6f 6d 6d 6f 6e 2e 0d 0a 0d 0a 49 6e 20 61 common.....In a
0360: 64 64 69 74 69 6f 6e 2c 20 74 65 78 74 20 66 69 ddition, text fi
0370: 6c 65 73 20 63 6f 6e 74 61 69 6e 69 6e 67 20 6e les containing n
0380: 6f 6e 2d 41 53 43 49 49 20 63 68 61 72 61 63 74 on-ASCII charact
0390: 65 72 73 20 74 68 61 74 20 77 65 72 65 20 77 72 ers that were wr
03a0: 69 74 74 65 6e 0d 0a 69 6e 20 60 5b 65 6e 63 6f itten..in `[enco
03b0: 64 69 6e 67 20 73 79 73 74 65 6d 5d 60 20 69 6e ding system]` in
03c0: 20 54 63 6c 20 38 20 6d 61 79 20 6e 6f 74 20 62 Tcl 8 may not b
03d0: 65 20 72 65 61 64 61 62 6c 65 20 69 6e 20 54 63 e readable in Tc
03e0: 6c 20 39 20 77 69 74 68 6f 75 74 20 61 6e 0d 0a l 9 without an..
03f0: 65 78 70 6c 69 63 69 74 20 60 66 63 6f 6e 66 69 explicit `fconfi
0400: 67 75 72 65 20 2d 65 6e 63 6f 64 69 6e 67 60 20 gure -encoding`
0410: 69 6e 76 6f 63 61 74 69 6f 6e 2e 20 54 68 69 73 invocation. This
0420: 20 69 73 20 61 20 70 61 72 74 69 63 75 6c 61 72 is a particular
0430: 20 70 72 6f 62 6c 65 6d 0d 0a 6f 6e 20 57 69 6e problem..on Win
0440: 64 6f 77 73 20 61 73 20 60 5b 65 6e 63 6f 64 69 dows as `[encodi
0450: 6e 67 20 73 79 73 74 65 6d 5d 60 20 69 6e 20 54 ng system]` in T
0460: 63 6c 20 39 20 72 65 74 75 72 6e 73 20 60 75 74 cl 9 returns `ut
0470: 66 2d 38 60 20 69 72 72 65 73 70 65 63 74 69 76 f-8` irrespectiv
0480: 65 0d 0a 6f 66 20 74 68 65 20 75 73 65 72 27 73 e..of the user's
0490: 20 63 6f 64 65 20 70 61 67 65 20 73 65 74 74 69 code page setti
04a0: 6e 67 20 74 68 61 74 20 77 61 73 20 75 73 65 64 ng that was used
04b0: 20 69 6e 20 54 63 6c 20 38 2e 0d 0a 0d 0a 54 68 in Tcl 8.....Th
04c0: 65 20 5b 74 63 6c 39 6d 69 67 72 61 74 65 5d 28 e [tcl9migrate](
04d0: 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 https://github.c
04e0: 6f 6d 2f 61 70 6e 61 64 6b 61 72 6e 69 2f 74 63 om/apnadkarni/tc
04f0: 6c 39 2d 6d 69 67 72 61 74 65 29 20 74 6f 6f 6c l9-migrate) tool
0500: 20 69 73 0d 0a 61 6e 20 6f 6e 2d 67 6f 69 6e 67 is..an on-going
0510: 20 28 61 73 20 69 6e 20 64 6f 20 6e 6f 74 20 74 (as in do not t
0520: 72 79 20 69 74 20 79 65 74 21 29 20 65 66 66 6f ry it yet!) effo
0530: 72 74 20 74 6f 20 68 65 6c 70 20 75 73 65 72 73 rt to help users
0540: 20 77 69 74 68 20 74 68 65 20 61 62 6f 76 65 0d with the above.
0550: 0a 61 73 20 77 65 6c 6c 20 61 73 20 6f 74 68 65 .as well as othe
0560: 72 20 69 6e 63 6f 6d 70 61 74 69 62 69 6c 69 74 r incompatibilit
0570: 69 65 73 0d 0a 6c 69 6b 65 20 6f 63 74 61 6c 20 ies..like octal
0580: 61 6e 64 20 74 69 6c 64 65 20 65 78 70 61 6e 73 and tilde expans
0590: 69 6f 6e 2e 20 49 74 20 69 6e 63 6c 75 64 65 73 ion. It includes
05a0: 20 62 6f 74 68 20 61 20 73 74 61 74 69 63 20 63 both a static c
05b0: 68 65 63 6b 65 72 20 62 61 73 65 64 0d 0a 6f 6e hecker based..on
05c0: 20 4e 61 67 65 6c 66 61 72 20 61 73 20 77 65 6c Nagelfar as wel
05d0: 6c 20 61 73 20 61 20 72 75 6e 74 69 6d 65 20 73 l as a runtime s
05e0: 68 69 6d 20 74 6f 20 68 65 6c 70 20 77 69 74 68 him to help with
05f0: 20 74 68 65 20 64 61 74 61 20 66 69 6c 65 20 65 the data file e
0600: 6e 63 6f 64 69 6e 67 0d 0a 69 73 73 75 65 73 2e ncoding..issues.
0610: 20 48 6f 77 65 76 65 72 2c 20 69 74 20 72 65 71 However, it req
0620: 75 69 72 65 73 20 73 6f 6d 65 20 66 75 6e 63 74 uires some funct
0630: 69 6f 6e 61 6c 69 74 79 20 66 72 6f 6d 20 49 43 ionality from IC
0640: 55 20 66 6f 72 20 74 68 69 73 0d 0a 70 75 72 70 U for this..purp
0650: 6f 73 65 2e 0d 0a 0d 0a 48 65 6e 63 65 20 74 68 ose.....Hence th
0660: 69 73 20 70 72 6f 70 6f 73 61 6c 2e 0d 0a 0d 0a is proposal.....
0670: 23 23 20 53 70 65 63 69 66 69 63 61 74 69 6f 6e ## Specification
0680: 0d 0a 0d 0a 54 68 65 20 60 74 63 6c 3a 3a 75 6e ....The `tcl::un
0690: 73 75 70 70 6f 72 74 65 64 3a 3a 69 63 75 60 20 supported::icu`
06a0: 63 6f 6d 6d 61 6e 64 20 65 6e 73 65 6d 62 6c 65 command ensemble
06b0: 20 69 6e 63 6c 75 64 65 73 20 73 75 62 63 6f 6d includes subcom
06c0: 6d 61 6e 64 73 0d 0a 0d 0a 2d 20 60 64 65 74 65 mands....- `dete
06d0: 63 74 60 20 74 6f 20 67 75 65 73 73 20 66 69 6c ct` to guess fil
06e0: 65 20 65 6e 63 6f 64 69 6e 67 73 0d 0a 2d 20 60 e encodings..- `
06f0: 69 63 75 54 6f 54 63 6c 60 20 61 6e 64 20 60 74 icuToTcl` and `t
0700: 63 6c 54 6f 49 63 75 60 20 74 6f 20 6d 61 70 20 clToIcu` to map
0710: 49 43 55 20 6e 61 6d 65 73 20 74 6f 20 54 63 6c ICU names to Tcl
0720: 20 65 6e 63 6f 64 69 6e 67 20 6e 61 6d 65 73 20 encoding names
0730: 61 6e 64 20 76 69 63 65 20 76 65 72 73 61 0d 0a and vice versa..
0740: 0d 0a 60 60 60 0d 0a 69 63 75 20 64 65 74 65 63 ..```..icu detec
0750: 74 20 3f 44 41 54 41 20 3f 2d 61 6c 6c 3f 3f 0d t ?DATA ?-all??.
0760: 0a 69 63 75 20 69 63 75 54 6f 54 63 6c 20 49 43 .icu icuToTcl IC
0770: 55 45 4e 43 4f 44 49 4e 47 4e 41 4d 45 0d 0a 69 UENCODINGNAME..i
0780: 63 75 20 74 63 6c 54 6f 49 63 75 20 54 43 4c 45 cu tclToIcu TCLE
0790: 4e 43 4f 44 49 4e 47 4e 41 4d 45 0d 0a 60 60 60 NCODINGNAME..```
07a0: 0d 0a 0d 0a 57 69 74 68 20 6e 6f 20 61 72 67 75 ....With no argu
07b0: 6d 65 6e 74 73 2c 20 60 69 63 75 20 64 65 74 65 ments, `icu dete
07c0: 63 74 60 20 72 65 74 75 72 6e 73 20 6e 61 6d 65 ct` returns name
07d0: 73 20 6f 66 20 61 6c 6c 20 65 6e 63 6f 64 69 6e s of all encodin
07e0: 67 73 20 6b 6e 6f 77 6e 20 74 6f 20 49 43 55 2e gs known to ICU.
07f0: 0d 0a 49 66 20 60 64 61 74 61 60 20 69 73 20 73 ..If `data` is s
0800: 70 65 63 69 66 69 65 64 2c 20 69 74 20 73 68 6f pecified, it sho
0810: 75 6c 64 20 62 65 20 61 20 62 69 6e 61 72 79 20 uld be a binary
0820: 73 74 72 69 6e 67 20 61 6e 64 20 74 68 65 20 63 string and the c
0830: 6f 6d 6d 61 6e 64 73 0d 0a 72 65 74 75 72 6e 73 ommands..returns
0840: 20 74 68 65 20 49 43 55 20 6e 61 6d 65 20 6f 66 the ICU name of
0850: 20 74 68 65 20 6d 6f 73 74 20 6c 69 6b 65 6c 79 the most likely
0860: 20 65 6e 63 6f 64 69 6e 67 2e 0d 0a 49 66 20 74 encoding...If t
0870: 68 65 20 60 2d 61 6c 6c 60 20 6f 70 74 69 6f 6e he `-all` option
0880: 20 69 73 20 73 70 65 63 69 66 69 65 64 2c 20 69 is specified, i
0890: 74 20 72 65 74 75 72 6e 73 20 61 20 6c 69 73 74 t returns a list
08a0: 20 6f 66 20 70 6f 73 73 69 62 6c 65 20 49 43 55 of possible ICU
08b0: 20 65 6e 63 6f 64 69 6e 67 0d 0a 6e 61 6d 65 73 encoding..names
08c0: 20 6f 72 64 65 72 65 64 20 62 79 20 74 68 65 69 ordered by thei
08d0: 72 20 63 6f 6e 66 69 64 65 6e 63 65 20 73 63 6f r confidence sco
08e0: 72 65 20 28 68 69 67 68 65 73 74 20 74 6f 20 6c re (highest to l
08f0: 6f 77 65 73 74 29 2e 0d 0a 41 6e 20 65 6d 70 74 owest)...An empt
0900: 79 20 73 74 72 69 6e 67 20 69 73 20 72 65 74 75 y string is retu
0910: 72 6e 65 64 20 69 66 20 74 68 65 72 65 20 6e 6f rned if there no
0920: 74 68 69 6e 67 20 6d 61 74 63 68 65 73 2e 0d 0a thing matches...
0930: 0d 0a 53 6f 6d 65 20 63 61 76 65 61 74 73 3a 0d ..Some caveats:.
0940: 0a 0d 0a 2d 20 44 6f 65 73 20 6e 6f 74 20 67 69 ...- Does not gi
0950: 76 65 20 67 6f 6f 64 20 72 65 73 75 6c 74 73 20 ve good results
0960: 66 6f 72 20 73 68 6f 72 74 65 72 20 73 74 72 69 for shorter stri
0970: 6e 67 73 20 66 6f 72 20 6f 62 76 69 6f 75 73 20 ngs for obvious
0980: 72 65 61 73 6f 6e 73 2e 0d 0a 0d 0a 2d 20 42 65 reasons.....- Be
0990: 73 74 20 72 65 73 75 6c 74 73 20 69 66 20 63 61 st results if ca
09a0: 6c 6c 65 72 20 66 69 72 73 74 20 63 68 65 63 6b ller first check
09b0: 73 20 66 6f 72 20 55 54 46 2d 38 20 61 6e 64 20 s for UTF-8 and
09c0: 74 68 65 6e 20 63 61 6c 6c 73 20 60 69 63 75 20 then calls `icu
09d0: 64 65 74 65 63 74 60 0d 0a 73 69 6e 63 65 20 61 detect`..since a
09e0: 20 66 61 6c 73 65 20 70 6f 73 69 74 69 76 65 20 false positive
09f0: 69 73 20 76 65 72 79 20 75 6e 6c 69 6b 65 6c 79 is very unlikely
0a00: 20 66 6f 72 20 55 54 46 2d 38 20 77 68 69 6c 65 for UTF-8 while
0a10: 20 49 43 55 20 6f 66 74 65 6e 20 6d 69 73 74 61 ICU often mista
0a20: 6b 65 73 0d 0a 55 54 46 2d 38 20 66 6f 72 20 49 kes..UTF-8 for I
0a30: 53 4f 38 38 35 39 2d 31 2e 20 54 68 69 73 20 69 SO8859-1. This i
0a40: 73 20 74 68 65 20 73 74 72 61 74 65 67 79 20 66 s the strategy f
0a50: 6f 6c 6c 6f 77 65 64 20 62 79 20 74 68 65 20 60 ollowed by the `
0a60: 74 63 6c 39 6d 69 67 72 61 74 65 60 0d 0a 70 61 tcl9migrate`..pa
0a70: 63 6b 61 67 65 2e 0d 0a 0d 0a 2d 20 41 64 64 69 ckage.....- Addi
0a80: 74 69 6f 6e 61 6c 6c 79 2c 20 77 68 65 6e 20 64 tionally, when d
0a90: 65 61 6c 69 6e 67 20 77 69 74 68 20 57 69 6e 64 ealing with Wind
0aa0: 6f 77 73 20 66 69 6c 65 20 63 6f 6e 74 65 6e 74 ows file content
0ab0: 2c 20 62 65 74 74 65 72 20 74 6f 20 63 68 65 63 , better to chec
0ac0: 6b 0d 0a 66 6f 72 20 55 54 46 2d 38 2c 20 66 6f k..for UTF-8, fo
0ad0: 6c 6c 6f 77 65 64 20 62 79 20 63 75 72 72 65 6e llowed by curren
0ae0: 74 20 63 6f 64 65 20 70 61 67 65 2c 20 74 68 65 t code page, the
0af0: 6e 20 60 69 63 75 20 64 65 74 65 63 74 60 2e 0d n `icu detect`..
0b00: 0a 0d 0a 54 68 65 20 61 62 6f 76 65 20 63 6f 6d ...The above com
0b10: 6d 61 6e 64 73 20 77 72 61 70 20 74 68 65 20 6c mands wrap the l
0b20: 6f 77 65 72 20 6c 65 76 65 6c 20 49 43 55 20 41 ower level ICU A
0b30: 50 49 20 77 68 69 63 68 20 69 73 20 69 6e 74 65 PI which is inte
0b40: 72 6e 61 6c 20 75 73 65 0d 0a 6f 6e 6c 79 20 61 rnal use..only a
0b50: 74 20 74 68 65 20 6d 6f 6d 65 6e 74 20 61 6e 64 t the moment and
0b60: 20 6e 6f 74 20 64 6f 63 75 6d 65 6e 74 65 64 20 not documented
0b70: 68 65 72 65 2e 0d 0a 0d 0a 54 68 65 20 63 6f 6d here.....The com
0b80: 6d 61 6e 64 20 77 69 6c 6c 20 62 65 20 61 75 74 mand will be aut
0b90: 6f 2d 6c 6f 61 64 65 64 20 6f 6e 20 66 69 72 73 o-loaded on firs
0ba0: 74 20 75 73 65 2e 0d 0a 0d 0a 54 68 65 20 49 43 t use.....The IC
0bb0: 55 20 6c 69 62 72 61 72 69 65 73 20 77 69 6c 6c U libraries will
0bc0: 20 6e 6f 74 20 62 65 20 73 68 69 70 70 65 64 20 not be shipped
0bd0: 77 69 74 68 20 54 63 6c 20 61 6e 64 20 74 68 65 with Tcl and the
0be0: 20 66 75 6e 63 74 69 6f 6e 61 6c 69 74 79 0d 0a functionality..
0bf0: 77 69 6c 6c 20 6e 6f 74 20 62 65 20 61 76 61 69 will not be avai
0c00: 6c 61 62 6c 65 20 6f 6e 20 73 79 73 74 65 6d 73 lable on systems
0c10: 20 74 68 61 74 20 64 6f 20 6e 6f 74 20 68 61 76 that do not hav
0c20: 65 20 74 68 65 6d 20 69 6e 73 74 61 6c 6c 65 64 e them installed
0c30: 2e 0d 0a 54 68 69 73 20 69 73 20 61 63 63 65 70 ...This is accep
0c40: 74 61 62 6c 65 20 62 65 63 61 75 73 65 20 74 68 table because th
0c50: 65 20 69 6e 74 65 6e 64 65 64 20 75 73 65 20 69 e intended use i
0c60: 73 20 6f 6e 20 64 65 76 65 6c 6f 70 65 72 20 73 s on developer s
0c70: 79 73 74 65 6d 73 0d 0a 75 73 65 64 20 66 6f 72 ystems..used for
0c80: 20 70 6f 72 74 69 6e 67 20 73 63 72 69 70 74 73 porting scripts
0c90: 2e 20 4f 6e 20 72 65 63 65 6e 74 20 76 65 72 73 . On recent vers
0ca0: 69 6f 6e 73 20 6f 66 20 57 69 6e 64 6f 77 73 20 ions of Windows
0cb0: 31 30 20 61 6e 64 20 6c 61 74 65 72 2c 0d 0a 49 10 and later,..I
0cc0: 43 55 20 69 73 20 61 6c 72 65 61 64 79 20 70 72 CU is already pr
0cd0: 65 73 65 6e 74 20 61 73 20 70 61 72 74 20 6f 66 esent as part of
0ce0: 20 74 68 65 20 73 79 73 74 65 6d 20 6c 69 62 72 the system libr
0cf0: 61 72 69 65 73 2e 0d 0a 0d 0a 23 23 20 49 6d 70 aries.....## Imp
0d00: 6c 65 6d 65 6e 74 61 74 69 6f 6e 0d 0a 0d 0a 49 lementation....I
0d10: 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 66 6f mplementation fo
0d20: 6c 6c 6f 77 73 20 74 68 65 20 6f 6e 65 20 61 6c llows the one al
0d30: 72 65 61 64 79 20 70 72 65 73 65 6e 74 20 69 6e ready present in
0d40: 20 54 6b 20 65 78 63 65 70 74 20 66 6f 72 0d 0a Tk except for..
0d50: 64 69 66 66 65 72 65 6e 63 65 73 20 69 6e 20 6c differences in l
0d60: 69 62 72 61 72 69 65 73 20 6c 6f 61 64 65 64 20 ibraries loaded
0d70: 73 74 65 6d 6d 69 6e 67 20 66 72 6f 6d 20 64 69 stemming from di
0d80: 66 66 65 72 65 6e 74 20 41 50 49 27 73 20 75 73 fferent API's us
0d90: 65 64 2e 0d 0a 43 6f 6d 62 69 6e 69 6e 67 20 74 ed...Combining t
0da0: 68 65 20 74 77 6f 20 69 73 20 66 6f 72 20 61 20 he two is for a
0db0: 6c 61 74 65 72 20 74 69 6d 65 2e 0d 0a 0d 0a 4c later time.....L
0dc0: 69 6b 65 20 54 6b 2c 20 74 68 65 20 62 75 69 6c ike Tk, the buil
0dd0: 64 20 73 79 73 74 65 6d 20 69 73 20 75 6e 61 66 d system is unaf
0de0: 66 65 63 74 65 64 20 61 73 20 74 68 65 20 49 43 fected as the IC
0df0: 55 20 6c 69 62 72 61 72 69 65 73 20 61 72 65 0d U libraries are.
0e00: 0a 6c 6f 61 64 65 64 20 6f 6e 6c 79 20 61 74 20 .loaded only at
0e10: 72 75 6e 74 69 6d 65 2e 20 54 68 69 73 20 69 73 runtime. This is
0e20: 20 69 6e 74 65 6e 74 69 6f 6e 61 6c 20 74 68 6f intentional tho
0e30: 75 67 68 20 74 68 65 72 65 20 69 73 20 61 20 70 ugh there is a p
0e40: 65 72 66 6f 72 6d 61 6e 63 65 0d 0a 63 6f 73 74 erformance..cost
0e50: 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 associated with
0e60: 20 73 65 61 72 63 68 69 6e 67 20 66 6f 72 20 74 searching for t
0e70: 68 65 20 6c 69 62 72 61 72 79 2e 20 54 68 69 73 he library. This
0e80: 20 69 73 20 61 63 63 65 70 74 61 62 6c 65 0d 0a is acceptable..
0e90: 61 73 20 69 74 20 77 69 6c 6c 20 6f 6e 6c 79 20 as it will only
0ea0: 62 65 20 69 6e 63 75 72 72 65 64 20 6f 6e 20 75 be incurred on u
0eb0: 73 65 20 6f 66 20 74 68 65 20 60 69 63 75 60 20 se of the `icu`
0ec0: 63 6f 6d 6d 61 6e 64 2e 0d 0a 0d 0a 43 6f 64 65 command.....Code
0ed0: 20 69 73 20 69 6e 20 62 72 61 6e 63 68 20 5b 61 is in branch [a
0ee0: 70 6e 2d 65 78 70 65 72 69 6d 65 6e 74 2d 63 68 pn-experiment-ch
0ef0: 61 72 64 65 74 5d 28 68 74 74 70 73 3a 2f 2f 63 ardet](https://c
0f00: 6f 72 65 2e 74 63 6c 2d 6c 61 6e 67 2e 6f 72 67 ore.tcl-lang.org
0f10: 2f 74 63 6c 2f 74 69 6d 65 6c 69 6e 65 3f 72 3d /tcl/timeline?r=
0f20: 61 70 6e 2d 65 78 70 65 72 69 6d 65 6e 74 2d 63 apn-experiment-c
0f30: 68 61 72 64 65 74 29 2e 0d 0a 0d 0a 0d 0a 0d 0a hardet).........
0f40: 0a 5a 20 31 64 35 65 34 66 38 35 39 35 30 38 30 .Z 1d5e4f8595080
0f50: 30 30 62 32 64 33 30 63 38 38 39 66 63 32 62 35 00b2d30c889fc2b5
0f60: 33 32 35 0a 325.