143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
reasons can set the `-profile` configuration option for the channel to `tcl8` via
the `Tcl_SetChannelOption` function. This is however non-conformant with the
Unicode standard and is not recommended. A standard-conformant alternative is
to set the profile to `replace` instead.
See [TIP 657](https://core.tcl-lang.org/tips/doc/trunk/tip/657.md)
## System encoding changed on MS-Windows
On MS-Windows, the system encoding is now fixed to `utf-8`.
Most encoding related functions use the parameter `NULL` for the system encoding.
For example, the following code now uses `utf-8` encoding with TCL 9 and `cp1252` (in Western Europe) with TCL 8.6:
```
Tcl_UtfToExternalDString( NULL, pStr, lStr, &sPar1);
```
To use `cp1252`, the encoding must be explicitly loaded.
In TCL 9.0.1, there is no possibility to get the system encoding of TCL8.6.
The TCL 9.1 TIP 716 proposes the command `Tcl_GetEncodingNameForUser` to get the name of the system encoding of TCL8.6.
Also remark, that encoding conversions now may return errors. The upper call may be replaced by its extended version `Tcl_ExternalToUtfDStringEx` which is able to handle encoding errors.
## `Tcl_ObjType` versioning
The Tcl value system has been extended. The `Tcl_ObjType` has additional (optional) fields. Any Tcl extensions, or embedded integration with Tcl, that has a custom `Tcl_ObjType` value defined, should review these changes. Existing code should compile and execute just fine, unless the particular implementation is using any "creative" programming. In simpler terms, the `Tcl_ObjType` structure is larger. It should be initialized properly without any changes needed, but YMMV.
Please see the `Tcl_RegisterObjType` manual page for more details, as well as TIP's [636](https://core.tcl-lang.org/tips/doc/trunk/tip/636.md) and [644](https://core.tcl-lang.org/tips/doc/trunk/tip/644.md).
## Abstract lists
|