Skip to content

[SR-11192] XML Parsing Error Inconsistency #3989

@swift-ci

Description

@swift-ci
Previous ID SR-11192
Radar None
Original Reporter drewag (JIRA User)
Type Bug

Attachment: Download

Environment

Ubuntu 18.04.1 LTS

Additional Detail from JIRA
Votes 1
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: ff9373b93ccc832173ee59bb0c861712

Issue Description:

I'm getting different error results on Linux compared to Apple platforms. Here is a minimal example (file attached):

import Foundation

let data = "<blah //>".data(using: .utf8)!
let parser = XMLParser(data: data)
print(parser.parse())
// Prints 2 on Apple platforms
// Prints 7 on Linux
print("Column: \(parser.columnNumber)")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions