Skip to content

use more modern I/O that does not rely on the system encoding#174

Merged
elharo merged 1 commit intomasterfrom
read
Mar 16, 2023
Merged

use more modern I/O that does not rely on the system encoding#174
elharo merged 1 commit intomasterfrom
read

Conversation

@elharo
Copy link
Contributor

@elharo elharo commented Mar 16, 2023

No description provided.

@elharo elharo requested a review from michael-o March 16, 2023 11:16
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, is there any logical difference?

@elharo
Copy link
Contributor Author

elharo commented Mar 16, 2023

Yes, there is. The current code gets in trouble if pom.xml encoding is incompatible with the system encoding. E.g. one is UTF-16 and one is UTF-8, or one is ISO-8859-1 and one is ISO-8859-1 when non-ASCII characters are used. The new code lets the XML parser detect the encoding so it will determine how the pom.xml is actually encoded instead of assuming it's the same as the system encoding.

@elharo elharo merged commit 0da97a2 into master Mar 16, 2023
@elharo elharo deleted the read branch March 16, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants