Bug #19708
closedFirst line of external TS is discarded when using UTF-8 encoded files
0%
Description
When including an external TypoScript file, the very first line of the external file is not always interpreted.
For instance, in my template, I write
<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/breadcrumb.txt">
with breadcrumb.txt being
-------------------
temp = HMENU
temp.1 = TMENU
temp.1 {
# config there
}
-------------------
Sometimes the "temp = HMENU" is forgotten leading to an incomplete TS setup and the temp object not being rendered.
Adding an empty line or a comment at the beginning solves this issue.
I cannot find a way to always reproduce this bug.
(issue imported from #M9963)
Updated by Francois Suter almost 16 years ago
I have observed this behavior too and tracked it to the file being in UTF-8 format. There's a weird character (apparently at the beginning of the first line) which makes the TS parser choke and discard the line.
Updated by Anonymous almost 16 years ago
Sounds like the BOM (http://en.wikipedia.org/wiki/Byte_Order_Mark)
Updated by demonkoryu over 13 years ago
- Target version deleted (
0)
This bug still hasn't been fixed.
Updated by Steffen Gebert almost 13 years ago
- Status changed from New to Accepted
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Needs Feedback
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
And is it a UTF-8 file with or without BOM?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.