Attachment "dlg.diff" to
ticket [1083878f]
added by
vincentdarley
2005-01-13 02:35:29.
Index: comdlg.tcl
===================================================================
RCS file: /cvsroot/tktoolkit/tk/library/comdlg.tcl,v
retrieving revision 1.9
diff -b -u -r1.9 comdlg.tcl
--- comdlg.tcl 21 Feb 2003 13:32:14 -0000 1.9
+++ comdlg.tcl 12 Jan 2005 19:35:07 -0000
@@ -279,6 +279,15 @@
continue
}
+ # Validate each macType. This is to agree with the
+ # behaviour of TkGetFileFilters(). This list may be
+ # empty.
+ foreach macType [lindex $t 2] {
+ if {[string length $macType] != 4} {
+ error "bad Macintosh file type \"$macType\""
+ }
+ }
+
set name "$label ("
set sep ""
set doAppend 1