Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [6bef0b5d0f] bibtex package doesn't parse entries correctly status still Open with 3 other changes artifact: 9f306fed71 user: serhiy.storchaka
2026-11-15
23:39
Fix [6bef0b5d0f]: bibtex silently dropped a record that contained the word "comment" or "preamble" in a field. Anchor the record-type regexps. leaf check-in: 68f4c9130b user: serhiy.storchaka tags: bibtex-comment-anchor
2016-05-15
14:18 • Add attachment kang.bib to ticket [6bef0b5d0f] artifact: 8debe9ba55 user: emiliano
14:17 • Add attachment bibtex.tcl.diff to ticket [6bef0b5d0f] artifact: 271488ff5e user: emiliano
14:14 • New ticket [6bef0b5d0f] bibtex package doesn't parse entries correctly. artifact: f0dbc8ac5d user: emiliano

Ticket UUID: 6bef0b5d0fc38991e97f9e45a514108c218573a0
Title: bibtex package doesn't parse entries correctly
Type: Bug Version: 0.5
Submitter: emiliano Created on: 2016-05-15 14:14:45
Subsystem: bibtex Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2026-11-16 00:06:15
Resolution: None Closed By: nobody
    Closed on:
Description:
If an entry contains the literal words "comment", "strings" or "preamble" they are incorrectly processed as one of these types of entries.

The problem is in the regex that selects the type of entry; it is not contrained to look for these words only at the beginning of the record.
User Comments: serhiy.storchaka added on 2026-11-16 00:06:15:

Proposed fix in branch bibtex-comment-anchor: the comment and preamble regexps are anchored like the string one, so a record containing those words is no longer dropped. Tests bibtex-7.0 to 7.2.


Attachments: