Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-10-07
13:41 • Ticket [1934200fff] man2tcl fails with \N'xx' sequence->ParseCmd.3 fa... artifact: a0b26edf48 user: oehhar
01:45 • Closed ticket [1934200fff]. artifact: da78dfaa29 user: mistachkin
2008-10-06
16:38 • Ticket [1934200fff]: 4 changes artifact: 06bdc14e72 user: dkf
16:18 • Ticket [1934200fff]: 4 changes artifact: 9d15fcd558 user: oehhar
16:09 • Ticket [1934200fff]: 4 changes artifact: 4bcf31e7ac user: mistachkin
15:54 • Ticket [1934200fff]: 4 changes artifact: 14f244780f user: oehhar
15:54 • Add attachment man2tcl_86a2.c.patch to ticket [1934200fffffffff|1934200... artifact: cba900cb39 user: oehhar
15:54 • Ticket [1934200fff] man2tcl fails with \N'xx' sequence->ParseCmd.3 fa... artifact: dd9c35ea84 user: oehhar
15:28 • Open ticket [1934200fff]. artifact: 5ea81dd990 user: oehhar
15:28 • Ticket [1934200fff]: 4 changes artifact: 72abef4c8f user: oehhar
2008-10-03
02:25 • Closed ticket [1934200fff]. artifact: 5b1f20b46c user: mistachkin
2008-09-04
18:56 • Ticket [1934200fff]: 1 change artifact: 9f65bf8f4a user: oehhar
18:56 • Ticket [1934200fff]: 4 changes artifact: 01110c93dd user: oehhar
2008-06-30
22:39 • Open ticket [1934200fff]. artifact: 198a4e144b user: oehhar
2008-06-28
09:20 • Closed ticket [1934200fff]. artifact: 80bcdaaade user: sf-robot
2008-06-13
13:04 • Pending ticket [1934200fff]. artifact: 52da580767 user: mistachkin
2008-04-04
22:05 • Ticket [1934200fff]: 1 change artifact: 6b3ff52ad4 user: dgp
17:02 • Ticket [1934200fff]: 4 changes artifact: 6d321e23c8 user: oehhar
15:23 • Ticket [1934200fff]: 4 changes artifact: 2f77583779 user: oehhar
15:23 • Add attachment man2tcl.c.patch to ticket [1934200fff] artifact: 10738460e0 user: oehhar
08:23 • New ticket [1934200fff] man2tcl fails with \N'xx' sequence->ParseCmd.... artifact: 9aefa67a51 user: oehhar

man2tcl fails with \N'xx' sequence->ParseCmd.3 fails

Closed / Fixed1934200fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 18 years ago
Descriptionplain2008-04-04 08:23:20
on windows hlp file build, the program man2tcl.c is compiled and executed for each help file.

A sequence of \N'xx' is translated to:
text\u00yytext '
(yy: hex of xx) and should be translated to:
text \u00yy

This bug makes the help build fail on the file ParseCmd.3, which contains the sequence:
\N'34' to get a double-quote.

The position of this text is on the page of Tcl_ParseCommand, section Tcl_ParseQuotedString

A patch against 8.5.2 is attached.
oehharplain2008-04-04 15:23:22
File Added - 273171: man2tcl.c.patch
oehharplain2008-04-04 17:02:51
Logged In: YES 
user_id=444601
Originator: YES

Please honor also bug reports with patches Tk 1934265 and Tk 1934272.
They appear when building Tk8.5.2. The concerned files are in the Tcl8.5.2 sources.
dgp Ticket [1934200fff]: 1 change [History diff]2008-04-04 22:05:32
mistachkinplain2008-06-13 13:04:55
Logged In: YES 
user_id=113501
Originator: NO


This should now be fixed in HEAD.

Still needs to be backported to 8.5.
sf-robotplain2008-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).
oehharplain2008-06-30 22:39:31
Logged In: YES 
user_id=444601
Originator: YES

IMHO, the bug is still pending in tcl8.5.3rc1.
Row 141 in ParseCmd.3 states:
The first character of \fIstart\fR must be \fB\N'34'\fR. 
It is translated by man2tcl.exe to (Row 513):
...
font B
text \u0022text '
font R
...
and should be:
...
font B
text \u0022
font R

The patch still applies.
oehharplain2008-09-04 18:56:25
Logged In: YES 
user_id=444601
Originator: YES

Bug stil present in release 8.5.4, patch still solves issue.
oehhar Ticket [1934200fff]: 1 change [History diff]2008-09-04 18:56:26
mistachkinplain2008-10-03 02:25:34
The fix has now been committed to core-8-5-branch.
oehharplain2008-10-06 15:28:31
Row 355: p++ of the patch was not committed. This results in additional unwanted "'"-characters in the output.

Example:
man2tcl.exe ParseCmd.3 > ParseCmd_86a2.out

ParseCmd.3 line 140:
"The first character of \fIstart\fR must be \fB\N'34'\fR. "

Translates to:
---START---
text The\ first\ character\ of\ 
font I
text start
font R
text \ must\ be\ 
font B
text \u0022
text '
font R
text .\ 
newline
---END---
The command: "\N'34'" translates to:
---START---
text \u0022
text '
---END---
and should translate to:
---START---
text \u0022
---END---

The output of the example is on the Tcl_ParseCommand-Page, section "Description", "Tcl_ParseQuotedString" in bold at the beginning of the paragraph, 2nd sentence, last character.
Copy and paste results in: "The first character of start must be "'."
oehhar Open ticket [1934200fff]. [History diff]2008-10-06 15:28:32
oehharplain2008-10-06 15:54:09
File Added - 296242: man2tcl_86a2.c.patch
oehharplain2008-10-06 15:54:10
patch against 86a2 head added.
File Added: man2tcl_86a2.c.patch
mistachkinplain2008-10-06 16:09:19
Thanks, I'll work on getting this fixed in HEAD and core-8-5-branch later today.  I wonder if this (and the other WinHelp fixes) should be backported to core-8-4-branch as well?
oehharplain2008-10-06 16:18:06
Yes, please backport !
Anyway it is copy and paste - the concerned files are identical.

Thank you,
Harald
dkfplain2008-10-06 16:38:41
Only if you're feeling very energetic (and if there's going to be another release from that branch). FWIW, I've stopped committing to that branch now.
mistachkinplain2008-10-07 01:45:20
The final piece is now committed to HEAD and core-8-5-branch.  I took a look at the differences between the changed files in HEAD and core-8-4-branch and they are radically different.  I don't have time to produce an appropriate patch for 8.4 right now; however, I'm happy to review any patches you submit in this area.
oehharplain2008-10-07 13:41:38
The implementation of the \N macro is not present in 8.4.19, so no reason for a backport.
Thank you for your work.
Log in (anonymous is fine) to add a comment.

Attachments: