[
https://issues.apache.org/jira/browse/IO-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772970#comment-17772970
]
Elliotte Rusty Harold commented on IO-414:
------------------------------------------
Weird. I can see how that might have failed but why didn't the CI pick that up
on my PR?
There is some platform dependent code in there. Reading through the bugs I'm
realizing commons-io has way too much platform dependent code. Some of it is
required to manage the vagaries of different file systems, but a lot of it
isn't. In particular very little code should ever use the platform default
encoding or platform default line separator. This is at the root of a number of
bugs.
In 2023 the default encoding when none is specified should be UTF-8, and the
line separator really doesn't matter but it shouldn't vary between platforms.
> IOUtils.writeLines is not correct with a charset with BOM
> ---------------------------------------------------------
>
> Key: IO-414
> URL: https://issues.apache.org/jira/browse/IO-414
> Project: Commons IO
> Issue Type: Bug
> Components: Streams/Writers, Utilities
> Affects Versions: 2.4, 2.5
> Reporter: Florent Brosse
> Priority: Major
> Fix For: 2.14.1
>
>
> When a charset has a BOM (like UTF-16), the method IOUtils.writeLines put 2
> BOM on each line.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)