9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
|
fconfigure $f -encoding utf-8 -buffering none -eofchar "" -translation lf -profile strict
} -body {
try {
read $f
} on error {result options} {
set data [dict get $options -data]
}
lappend data $result
} -cleanup {
close $f
removeFile io-75.6
} -match glob -result {A {error reading "*": illegal byte sequence}}
test io-75.7 {invalid utf-8 encoding eof handling (-profile strict)} -setup {
set fn [makeFile {} io-75.7]
|
|
|
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
|
fconfigure $f -encoding utf-8 -buffering none -eofchar "" -translation lf -profile strict
} -body {
try {
read $f
} on error {result options} {
set data [dict get $options -data]
}
lappend data $result
} -cleanup {
close $f
removeFile io-75.6
} -match glob -result {A {error reading "*": illegal byte sequence}}
test io-75.7 {invalid utf-8 encoding eof handling (-profile strict)} -setup {
set fn [makeFile {} io-75.7]
|