Skip to content
Tcl Source Code Changes To Encoding System
Login

Changes To Encoding System

Changes to "Encoding System" between 2014-10-02 12:15:45 and 2014-12-03 14:57:36

︙
42
43
44
45
46
47
48








49
50
51
52
53
54
55
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63







+
+
+
+
+
+
+
+







of each encoding.  The names used by Tcl are unfortunately a rather ad hoc
set and don't seem attached to any standard naming system.  One difficulty
to resolve is the role of case in encoding names.  The attachment of encoding
names to encoding data file names established in [Encoding Loading] and the
concern about filesystems that handle case in filenames in unexpected ways
is at issue here, as well as just the general possibility for confusion.  So,
better names and clearer case rules would be good.

One set of more widely-used names may be these:

https://www.iana.org/assignments/character-sets/character-sets.xhtml

Another source to examine for reconciliation is:

https://www.gnu.org/software/libiconv/

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
︙