PR: 19187 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274509 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -106,6 +106,9 @@ Fixed bugs: | |||||
| * build.sh install had a problem on cygwin (with REALANTHOME). | * build.sh install had a problem on cygwin (with REALANTHOME). | ||||
| Bugzilla Report 17257 | Bugzilla Report 17257 | ||||
| * <replaceregexp> didn't work for multi-byte encodings if byline was false. | |||||
| Bugzilla Report 19187. | |||||
| Other changes: | Other changes: | ||||
| -------------- | -------------- | ||||
| * Six new Clearcase tasks added. | * Six new Clearcase tasks added. | ||||
| @@ -416,17 +416,7 @@ public class ReplaceRegExp extends Task { | |||||
| pw.flush(); | pw.flush(); | ||||
| } else { | } else { | ||||
| int flen = (int) f.length(); | |||||
| char tmpBuf[] = new char[flen]; | |||||
| int numread = 0; | |||||
| int totread = 0; | |||||
| while (numread != -1 && totread < flen) { | |||||
| numread = br.read(tmpBuf, totread, flen); | |||||
| totread += numread; | |||||
| } | |||||
| String buf = new String(tmpBuf); | |||||
| String buf = fileUtils.readFully(br); | |||||
| String res = doReplace(regex, subs, buf, options); | String res = doReplace(regex, subs, buf, options); | ||||