[ 
https://issues.apache.org/jira/browse/IO-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634190#comment-13634190
 ] 

Sebb commented on IO-314:
-------------------------

URL: http://svn.apache.org/r1468992
Log:
IO-314 Deprecate all methods that use the default encoding

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/ReaderInputStream.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/ByteArrayOutputStream.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/LockableFileWriter.java
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java
                
> Deprecate all methods that use the default encoding
> ---------------------------------------------------
>
>                 Key: IO-314
>                 URL: https://issues.apache.org/jira/browse/IO-314
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Streams/Writers
>    Affects Versions: 2.1
>            Reporter: Aaron Digulla
>            Priority: Minor
>             Fix For: 2.5
>
>
> On Stackoverflow.com, I often see this kind of question: "When I read my text 
> on a different computer, it's all garbled."
> The underlying issue is that people don't understand the concept of encoding 
> and therefore, they use the default encoding which breaks their code when 
> they least expect it. Worse, it often causes data corruption without throwing 
> exceptions.
> Therefore my suggestion: Deprecate and then remove all methods that use the 
> default encoding. Users should always specify an encoding when doing text 
> I/O, to make sure that data cannot be corrupted even when they don't know 
> what they're doing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to