240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
-
+
|
```
package ifneeded mypackage 1.0 [list source -encoding cp1286 [file join $dir mypackage.tcl]]
```
This will still work in 9.0 for any supported codepage.
See [TIP 587](https://core.tcl-lang.org/tips/doc/trunk/tip/587.md).
## strict encoding profile for scripts
## Encoding profile *strict* for scripts
The strict encoding profile applies to the source command.
The source command may throw encoding errors.
Scripts with non ASCII characters, even in comments, may now fail if the encoding is wrong.
A typical example is a copyright glyph in a non UTF-8 codepage "©" script file.
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
|
-
+
|
* Replace `case` with `switch`
* Replace `read <chan> nonewline` with `read -nonewline <chan>`
* Replace `puts <chan> <line> nonewline` with `puts -nonewline <chan> <line>`
See [TIP 485](https://core.tcl-lang.org/tips/doc/trunk/tip/485.md)
### Deprecated `trace` subcommands `variable`, `vdelete`, `vinfo` have been removed
## Deprecated `trace` subcommands `variable`, `vdelete`, `vinfo` have been removed
These commands have been deprecated since Tcl 8.4 and have been removed from Tcl 9.
Scripts making use of these should be modified as below:
* Replace `trace variable` with `trace add variable`
* Replace `trace vdelete` with `trace remove variable`
|
357
358
359
360
361
362
363
|
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
at `/` but need to iterate across all volumes.
* The paths within `auto_path` *may* point to locations within the `zipfs` volume.
These are not writable so any installers that copy files into that location will fail.
Installers should check for writable locations in any case but this change will
result in errors in installers that write to directories in `auto_path` without
these checks.
## Channel option -eofchar change
Channel option *-eofchar* on write is not supported any more.
The default on MS-Windows is now the empty string (like on all other platforms).
```
% set t [open test.txt w+]
file46a7048
% fconfigure $t -eofchar
% fconfigure $t -eofchar {a b}
bad value for -eofchar: must be non-NUL ASCII character
```
See [TIP 646](https://core.tcl-lang.org/tips/doc/trunk/tip/646.md).
|