-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.Xmldocumentation
Description
Description
On Linux, the default value of XmlWriterSettings.NewLineChars is "\n", even though the documentation says it is "\r\n".
Reproduction Steps
PowerShell 7.2.5 using .NET 6.0.6 on Debian:
[System.Xml.XmlWriterSettings]::new().NewLineChars.GetEnumerator() | % { [int]$_ }
Expected behavior
Should output
13
10
Actual behavior
Outputs only
10
Regression?
I don't know
Known Workarounds
Assign XmlWriterSettings.NewLineChars after construction.
Configuration
.NET 6.0.6 on Debian 11.3 amd64.
The issue does not occur on Windows.
Other information
Metadata
Metadata
Assignees
Labels
Pri3Indicates issues/PRs that are low priorityIndicates issues/PRs that are low priorityarea-System.Xmldocumentation