Project

General

Profile

Actions

Bug #19708

closed

First line of external TS is discarded when using UTF-8 encoded files

Added by Xavier Perseguers over 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-12-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #32834: Remove BOM in getUrl()Closed2011-12-26

Actions
Actions #1

Updated by Francois Suter about 15 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.

Actions #2

Updated by Anonymous about 15 years ago

Actions #3

Updated by demonkoryu about 13 years ago

  • Target version deleted (0)

This bug still hasn't been fixed.

Actions #4

Updated by Steffen Gebert over 12 years ago

  • Status changed from New to Accepted
Actions #5

Updated by Alexander Opitz almost 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?

Actions #6

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF