Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDejan Gloszic2006-02-13 21:11:28 +0000
committerDejan Gloszic2006-02-13 21:11:28 +0000
commitd2a63ba4e472b393da7bb889e1e2342d5a3ffcb9 (patch)
treedb6d32907a73b973e65ef9cf75fd694b8f8b4bdd /org.eclipse.ua.tests/base/org/eclipse/ua/tests/util
parentf4c7f43883de92eefe36e93265f83f156f254757 (diff)
downloadeclipse.platform.ua-d2a63ba4e472b393da7bb889e1e2342d5a3ffcb9.tar.gz
eclipse.platform.ua-d2a63ba4e472b393da7bb889e1e2342d5a3ffcb9.tar.xz
eclipse.platform.ua-d2a63ba4e472b393da7bb889e1e2342d5a3ffcb9.zip
*** empty log message ***v20060213
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util')
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
index 00d67c292..cbc1f9c3c 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
@@ -144,6 +144,10 @@ public class FileUtil {
while ((num = in.read(buffer)) > 0) {
out.write(buffer, 0, num);
}
- return new String(out.toByteArray(), "UTF-8");
+ String result = new String(out.toByteArray(), "UTF-8");
+ if (result != null) {
+ result = result.replaceAll("\r", "");
+ }
+ return result;
}
}

Back to the top