| 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: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2026-10-24 19:10:51 | |
| Resolution: | Fixed | Closed By: | nemethi | |
| Closed on: | 2026-10-24 19:10:51 | |||
| 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 | |||
| User Comments: |
nemethi (claiming to be Csaba Nemethi) added on 2026-10-24 19:10:51:
Merged by Jan into main (only) by commit [1b3c3c45]. No backport to core-9-0-branch or core-8-6-branch is planned. Closing the ticket. oehhar added on 2026-09-28 08:07:40: +1 in 9.1. I would urge the merge to not miss 9.1.0... Thanks, Harald jan.nijtmans added on 2026-09-25 13:26:00: Thanks! We should discuss this in the next bi-weekly telco: Date: 28th of September 2026 Time: 12:00 UTC Duration: 1 hour At: https://meet.jit.si/TclMonthlyMeetup (Serhiy, it would be nice if you cold join) My view: We should include this in 9.1, but not backport to 9.0 and 8.6. I'm afraid there's code out there (however incorrect) that would break because of such a change. serhiy.storchaka added on 2026-09-25 09:03:38:
Proposed fix in branch option-readfile-x11-escapes ([7b80bfa546]): | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki