[asterisk-bugs] [JIRA] (ASTERISK-28667) Asterisk ignores parsing of config files if a Byte order mark is present
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Fri Dec 27 13:14:25 CST 2019
[ https://issues.asterisk.org/jira/browse/ASTERISK-28667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249181#comment-249181 ]
Friendly Automation commented on ASTERISK-28667:
------------------------------------------------
Change 13489 merged by George Joseph:
config.c: Skip UTF-8 BOMs if present when reading config files
[https://gerrit.asterisk.org/c/asterisk/+/13489|https://gerrit.asterisk.org/c/asterisk/+/13489]
> Asterisk ignores parsing of config files if a Byte order mark is present
> ------------------------------------------------------------------------
>
> Key: ASTERISK-28667
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28667
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Configs/Basic-PBX
> Affects Versions: 16.5.1
> Environment: CentOS 7
> Reporter: Robin Leffmann
> Assignee: Sean Bright
>
> If a Byte order mark ("BOM") is present in a .conf file, Asterisk will incorrectly state in the log that it has parsed the file but will in effect actually skip the file entirely, without throwing a warning or error.
> The BOM is a series of three bytes, 0xEF 0xBB 0xBF, represented by Unicode code point U+FEFF, and is typically located at the very start of a text file, and sometimes at the start of one or more lines in a text file.
> A test patch prodced and offered by [~seanbright] on IRC proved to solve the problem.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list