commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: svn commit: r1343020 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging: ./ common/ formats/bmp/ formats/icns/ formats/jpeg/iptc/ formats/png/ formats/psd/ formats/tiff/ formats/tiff/fieldtypes/ icc/ palette/
Date Sun, 27 May 2012 14:23:50 GMT
On Sun, May 27, 2012 at 9:47 AM, Emmanuel Bourg <ebourg@apache.org> wrote:

> Le 27/05/2012 13:41, Gary Gregory a écrit :
>
>
>  @@ -62,7 +63,7 @@ public class FormatCompliance {
>>>     }
>>>
>>>     public void dump() {
>>> -        dump(new PrintWriter(new OutputStreamWriter(System.out)**));
>>> +        dump(new PrintWriter(new OutputStreamWriter(System.out,
>>> Charset.defaultCharset())));
>>>     }
>>>
>>
>> That fixes the warning but not the real issue. Why not use UTF-8 to
>> get a platform independent result?
>>
>
> If this simply dump the data on the console I think the default encoding
> is a sensible choice. Otherwise this will output corrupted characters when
> run from the command line.
>

Check. Thank you for the explanation.

Gary


>
>
> Emmanuel Bourg
>
>
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message