jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60855] New: Use of default encoding: FileReader/Writer and InputStreamReader/OutputStreamWriter
Date Mon, 13 Mar 2017 18:22:43 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60855

            Bug ID: 60855
           Summary: Use of default encoding: FileReader/Writer and
                    InputStreamReader/OutputStreamWriter
           Product: JMeter
           Version: 3.1
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: sebb@apache.org
  Target Milestone: ---

FileReader and FileWriter use the default encoding, so are not really suitable
for use with anything other than temporary files.

Likewise InputStreamReader & OutputStreamWriter allow the encoding to be
omitted.

Files that may potentially be copied between hosts should have a defined
encoding, for example UTF-8 should be a suitable default.

However, that might break some existing installations - e.g. if the
ResultCollector is changed to always use UTF-8 it may be unable to read some
existing result files.

It may not be possible to fix all the existing usage; in the meantime it might
help to document where the code assumes the default encoding.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message