com pftt2: Always use charset detector: src/com/mostc/pftt/model/core/PhptTestCase.java
| From: | Anatol Belski | Date: | Sun, 30 Dec 2018 13:05:20 +0000 |
| Subject: | com pftt2: Always use charset detector: src/com/mostc/pftt/model/core/PhptTestCase.java | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-68317@lists.php.net to get a copy of this message | ||
Commit: f53d9d68ca50523e6bc842afe42ed5d9a763301d
Author: Anatol Belski <ab@php.net> Sun, 30 Dec 2018 14:05:20 +0100
Parents: 8d575806c167e4ea1f67bc4ed668af7db0b2e832
Branches: master
Link: http://git.php.net/?p=pftt2.git;a=commitdiff;h=f53d9d68ca50523e6bc842afe42ed5d9a763301d
Log:
Always use charset detector
This might be an overkill, but otherwise the most of multibyte tests
fail. Improvement is still needed, especially upgrade to newer ICU.
Former-commit-id: 116d7f9d257bec4fc0bb461eb22dfbb554780ce3
Changed paths:
M src/com/mostc/pftt/model/core/PhptTestCase.java
Diff:
diff --git a/src/com/mostc/pftt/model/core/PhptTestCase.java
b/src/com/mostc/pftt/model/core/PhptTestCase.java
index 83f6146..51d8758 100644
--- a/src/com/mostc/pftt/model/core/PhptTestCase.java
+++ b/src/com/mostc/pftt/model/core/PhptTestCase.java
@@ -173,8 +173,8 @@ public class PhptTestCase extends TestCase {
test_case.parent = parent;
DefaultCharsetDeciderDecoder cdd = newCharsetDeciderDecoder();
- ByLineReader reader = PhptTestCase.isNon8BitCharset(test_case.name) ?
host.mReadFileDetectCharset(file, cdd) : host.mReadFile(file);
-
+ //ByLineReader reader = PhptTestCase.isNon8BitCharset(test_case.name) ?
host.mReadFileDetectCharset(file, cdd) : host.mReadFile(file);
+ ByLineReader reader = host.mReadFileDetectCharset(file, cdd);
String line = reader.readLine();
if (!line.startsWith("--TEST--")) {