awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character
while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file "D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl" line 19)
invoked from within
"source D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl"
("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh
-profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open a ticket or make a pull request...
awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character
while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file "D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl" line 19)
invoked from within
"source D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl"
("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh -profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open a ticket or make a pull request...
meshparts <alexandru.dadalau@meshparts.de> posted:
awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character
while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file
"D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl" >> line 19)
invoked from within
"source
D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/awthemes/awdark.tcl" >> ("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh
-profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open a
ticket or make a pull request...
Hi,
I also use awdark theme on Windows and I did not saw such issue.
And no users of my app did report such issue.
Does you tcl/tk is compiled with -municode (if that matters....)?
++
Am 15.10.2025 um 20:19 schrieb meshparts:
awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character
while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file "D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/
awthemes/awdark.tcl" line 19)
invoked from within
"source D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/
awthemes/awdark.tcl"
("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh -
profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open a
ticket or make a pull request...
The SVG images contained in awthemes 10.4.0 can all be read using
_readFile with Tcl/Tk 9.0.2.
Did you change some of these files?
I would recommend to read the files in binary mode, i.e. set fh [open
$fn "rb"]
instead of using the -profile option, which does not work with Tcl/Tk 8.
Paul
Am 15.10.2025 um 22:36 schrieb Paul Obermeier:
Am 15.10.2025 um 20:19 schrieb meshparts:
awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character >>> while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file "D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/
awthemes/awdark.tcl" line 19)
invoked from within
"source D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/
awthemes/awdark.tcl"
("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh -
profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open
a ticket or make a pull request...
The SVG images contained in awthemes 10.4.0 can all be read using
_readFile with Tcl/Tk 9.0.2.
Did you change some of these files?
I would recommend to read the files in binary mode, i.e. set fh [open
$fn "rb"]
instead of using the -profile option, which does not work with Tcl/Tk 8.
Paul
I did not changed any of the images contained by the awthemes package.
Okay, I guess it's not problem to remove "-profile tcl8" and add "open
$fn rb" instead.
The questions is, how can we update the official package so that this
will not happen again?
Am 17.10.2025 um 11:09 schrieb meshparts:
Am 15.10.2025 um 22:36 schrieb Paul Obermeier:
Am 15.10.2025 um 20:19 schrieb meshparts:
awthemes with Tcl 9 causes on some Windows computers this error:
---------------------------
Error in startup script
---------------------------
error reading "rc501": invalid or incomplete multibyte or wide character >>>> while executing
"read $fh $fs"
(procedure "_readFile" line 4)
invoked from within
"_readFile $fn"
(procedure "_loadImageData" line 56)
invoked from within
"_loadImageData $theme $vars(image.dir.awthemes)"
(procedure "::ttk::awthemes::init" line 266)
invoked from within
"::ttk::awthemes::init $theme"
(procedure "init" line 4)
invoked from within
"init"
(in namespace eval "::ttk::theme::awdark" script line 56)
invoked from within
"namespace eval ::ttk::theme::awdark {
proc setBaseColors { } {
variable colors
array set colors {
style.arrow solid-bg
..."
(file "D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/ awthemes/awdark.tcl" line 19)
invoked from within
"source D:/MESHPARTS-Software/MESHPARTS2_20251015_x64.exe/lib/ awthemes/awdark.tcl"
("package ifneeded ttk::theme::awdark 7.12" script)
invoked from within
"packag ...
---------------------------
OK
---------------------------
I fixed the issue in _readFile by adding the line "fconfigure $fh - profile tcl8":
proc _readFile { fn } {
set fh [open $fn]
fconfigure $fh -profile tcl8
set fs [file size $fn]
set data [read $fh $fs]
close $fh
return $data
}
I found the repo on sourceforge but could not find an option to open a ticket or make a pull request...
The SVG images contained in awthemes 10.4.0 can all be read using _readFile with Tcl/Tk 9.0.2.
Did you change some of these files?
I would recommend to read the files in binary mode, i.e. set fh [open $fn "rb"]
instead of using the -profile option, which does not work with Tcl/Tk 8. >>>
Paul
I did not changed any of the images contained by the awthemes package.
Okay, I guess it's not problem to remove "-profile tcl8" and add "open $fn rb" instead.
The questions is, how can we update the official package so that this will not happen again?
The package is orphaned. A maintainer is required.
Great wizard Brad Lanam was idssapointed by the release politics and quitted Tk. One way to get it maintained would be to add it to the orphaned packages repository at github.
To my knowledge, Paul and Christian have updated versions in their copies.
Take care,
Harald
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,073 |
Nodes: | 10 (0 / 10) |
Uptime: | 222:43:19 |
Calls: | 13,783 |
Calls today: | 1 |
Files: | 186,987 |
D/L today: |
706 files (243M bytes) |
Messages: | 2,434,876 |