jlahoda closed pull request #247: Ensuring license texts are read using UTF-8
encoding.
URL: https://github.com/apache/incubator-netbeans/pull/247
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/VerifyLibsAndLicenses.java
b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/VerifyLibsAndLicenses.java
index cee110503..a41487e67 100644
--- a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/VerifyLibsAndLicenses.java
+++ b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/VerifyLibsAndLicenses.java
@@ -299,7 +299,7 @@ private void testLicenses() throws IOException {
StringBuffer masterBody = new StringBuffer();
is = new FileInputStream(licenseFile);
try {
- BufferedReader r = new BufferedReader(new
InputStreamReader(is));
+ BufferedReader r = new BufferedReader(new
InputStreamReader(is, "UTF-8"));
int c;
while ((c = r.read()) != -1) {
masterBody.append((char) c);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services