49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
-
+
+
+
|
The encoding/decoding functions in the extension struct <b>Tcl_EncodingType</b>
are the guts of operations, and the interface functions determine the interfaces.
Changes here will be difficult incompatibilities, but may still be worth pursuing
because the existing <b>Tcl_*To*</b> set of functions really doesn't mesh well
with the needs of actual callers. See the use of this routines by the [Channel System]
to see the trial and error involved. Some revisions that made available interfaces
that delivered what callers need would be an improvement.
that delivered what callers need would be an improvement. The most glaring defect
is that there is no way to direct the <b>Tcl_ExternalToUtf*</b> routines to respect
a limit on the number of chars produced.
Any reforms in Tcl string values generally will likely have an impact here as well.
Another audit of the refcounting scheme employed here wouldn't hurt, with particular
attention to thread safety issues.
Some routines take a (<b>Tcl_Interp *</b>) argument, for error reporting,
|