Menu

#2925 entry validatecommand and namespace code error

obsolete: 8.5.9
closed-out-of-date
5
2011-09-19
2011-09-19
Max Haider
No

We noticed that substitution of %P for an entry's validate command can create a command with an unmatched brace, which throws a tk error box onto the screen when the validate command is created with the "namespace code" method. The test script was executed with wish. The root cause appears to be how Tcl_ScanCountedElement does not return the correct flags for combinations of baskslash and braces. I believe that a command to validate a string should be able to execute without error on any string.

Discussion

  • Max Haider

    Max Haider - 2011-09-19

    script that creates an error box

     
  • Don Porter

    Don Porter - 2011-09-19

    Tcl_ScanCountedElement() was significantly revised for
    Tcl 8.5.10. Does that release still suffer the same problem?

     
  • Don Porter

    Don Porter - 2011-09-19
    • assigned_to: hobbs --> dgp
    • status: open --> pending
     
  • Don Porter

    Don Porter - 2011-09-19
    • status: pending --> closed-out-of-date
     
  • Don Porter

    Don Porter - 2011-09-19

    confirmed this Tcl bug is already fixed in release 8.5.10