From: <aku...@sh...> - 2016-12-06 21:52:23
|
Automated mail by fx, on behalf of aku...@sh... Ticket Change [926e178a1f75a67cc3bc331f5ffec81aa6aedeed] [Image photo commands read/write/put do not accept "-" as first letter in file names resp. image data] By anonymous For Tk On 2016-12-06T21:35:23.499 Details http://core.tcl.tk/tk/tinfo?name=926e178a1f75a67cc3bc331f5ffec81aa6aedeed Ticket http://core.tcl.tk/tk/tktview/d4fb4e80d220e46e588f310291fd7a4205e8cd67 Changed Fields assignee: nobody closer: nobody comment: If specifying file names starting with "-" (example "-folder.gif") to photo commands read and write gives error: unrecognized option "-folder.gif": must be -format, -from, -shrink, or -to while executing "$img2 read "-folder.gif"" Same problem when having image data for command "put" starting with "-" (i.e. integer 45): unrecognized option "--..." must be -format, or -to while executing "$img2 put [binary format "cu*" $rowList] Attached is a patch which works for me. It may break existing code, which does not conform to the documentation. Documentation says: read fileName options while read options filename does work with current implementation. Bug seems to be present in 8.5, too. foundin: 8.6.6 is_private: 0 login: anonymous priority: 5 Medium private_contact: b161dbf142556f12a9a6289ffc2a489dd98cabae resolution: None severity: Important status: Open submitter: anonymous subsystem: 41. Photo Images title: Image photo commands read/write/put do not accept "-" as first letter in file names resp. image data type: Patch ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl.tk/ ------------------------------------------------------------ |