Tk Source Code

View Ticket
Login
Ticket UUID: 1934265
Title: man2tcl does not honor quotes in macro arguments ->bind.n
Type: Bug Version: obsolete: 8.5.2
Submitter: oehhar Created on: 2008-04-04 09:51:13
Subsystem: 85. Win Build Assigned To: mistachkin
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-07-01 00:25:16
Resolution: Fixed Closed By: sf-robot
    Closed on: 2008-06-28 02:20:11
Description:
with the build target winhelp of makefile.vc, the help application man2tcl.c is build, which processes all files in the doc folder.

An error in macro expansion in man2help2.tcl is invoked when processing bind.n.

The problem:
Quotes in macro arguemnt are not honored. Thus a space within quotes starts a new parameter.

Input sequence:

.ta \w'\fBButtonPress, Button\0\0\0\fR'u +\w'\fBKeyPress, Key\0\0\0\fR'u

Current output:
macro ta \\w'\\fBButtonPress, Button\ \ \ \\fR'u +\\w'\\fBKeyPress, Key\ \ \ 
Desired output:
macro ta \\w'\\fBButtonPress,\ Button\ \ \ \\fR'u +\\w'\\fBKeyPress,\ Key\ \ \ 

A patch is attached (not including patch of Tcl Bug 1934200).
To finally process the row correctly, man2help2.tcl also needs a patch, which is supplied in a following bug report.

The files are in the Tcl 8.5.2 sources folder tools.
The error arises when compiling Tk 8.5.2
User Comments: oehhar added on 2008-07-01 00:25:16:
Logged In: YES 
user_id=444601
Originator: YES

This is solved for me in the head. Backport to 8.5.x would be helpful and easy because the files did not change.

sf-robot added on 2008-06-28 09:20:11:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

mistachkin added on 2008-06-13 13:36:40:
Logged In: YES 
user_id=113501
Originator: NO


The new output seems to match the desired output above; however, I'm not 100% convinced this is fixed.  Please confirm.

oehhar added on 2008-04-04 16:51:15:

File Added - 273186: man2tcl.c.patch2

Attachments: