Tk Source Code

View Ticket
Login
2019-05-02
02:01 New ticket [d5d7f548bd] Tk option readfile fails to properly handle \tab in resource files. artifact: 70ac293165 user: bigfaceworm

Ticket UUID: d5d7f548bdfd38675c268cde3f590ba8103e0f60
Title: Tk [option readfile] fails to properly handle \tab in resource files
Type: Bug Version: 8.6.9
Submitter: bigfaceworm Created on: 2019-05-02 02:01:32
Subsystem: 57. [option] Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2019-05-02 02:01:32
Resolution: None Closed By: nobody
    Closed on:
Description:
Create an option file containing:

*example: \tab

(where the tab is the literal tab character)

Then read that into Tk and examine the result.

According to the spec: https://www.x.org/archive/X11R6.8.1/doc/X.7.html
That should result in just a tab character, but instead, it is currently resulting in \tab (the \ remains).

This behavior was fixed in 8.5 and in 8.6 as a part of: https://core.tcl-lang.org/tk/tktview?name=0aa5e852dc

But, then broken in a fix detailed here: https://core.tcl.tk/tk/info/766ef52f317f3a4a

The original test for this functionality was (incorrectly) updated to have the literal \ remain in front of the tab character.  Test : option-15.7