|
Unfortunately, you *do* have to convert most of the text files used by the various tests.
Certainly all master files, and for instance text files for import/export. I unraveled derbyTesting.jar, used native2ascii -reverse in a script on the os390 machine to convert to Cp1047 and jar-ed it back up (for space). I would see the need to convert as a bug in the test harness. I think the harness should be reading the text files in a fixed format so that the test pass regardless of the default encoding of the platform.
Myrna van Lunteren made changes - 28/Oct/05 09:49 AM
Logging a new bug for the test harness adjustment, and when that is done I'll see if the test needs further adjustments.
Myrna van Lunteren made changes - 28/Oct/05 11:23 AM
After doing work following from
It's the following section: FileReader fr = new FileReader(fileName[4]); ps.setInt(1, i); .... ps.setCharacterStream(6, new java.io.BufferedReader(fr),300000); ps.executeUpdate(); The api doc says: " The constructors of this class assume that the default character encoding and the default byte-buffer size are appropriate. To specify these values yourself, construct an InputStreamReader on a FileInputStream. " Thus, to make blobclob4BLOB pass with -DderbyTesting.encoding=UTF-16 (you need the improved patch for test harness from File file = new File(fileName[4]); InputStream fileIS = new FileInputStream(file); Reader fr = new InputStreamReader(fileIS, "US-ASCII"); ps.setInt(1, i); ... ps.setCharacterStream(6, fr, 300000); This then passes with -DderbyTesting.encoding=UTF-16 with embedded (after also fixing I will run some more tests, then submit a patch for This has now been fixed with
Myrna van Lunteren made changes - 22/Feb/06 10:48 AM
Myrna van Lunteren made changes - 22/Feb/06 10:51 AM
Myrna van Lunteren made changes - 22/Feb/06 10:52 AM
Myrna van Lunteren made changes - 22/Feb/06 11:27 PM
Myrna van Lunteren made changes - 14/Apr/06 01:59 PM
Attached is a patch for this issue -
It contains changes to and for the tests: jdbcapi/blobclob4BLOB.java jdbcapi/lobStreams.java tools/ieptests.sql The changes boil down to ensuring that appropriate mechanisms are used to accessing supported files - and in the case of blobclob4BLOB and lobStreams, I ended up copying the supportfiles because they were used by other tests with another encoding. So now, the .utf tests are copied unchanged, i.e. in UTF-8 encoding, and the .txt files are copied into local encoding.
Myrna van Lunteren made changes - 25/Apr/06 10:01 AM
Patch for 10.2 is attached, a patch for 10.1 will follow.
Myrna van Lunteren made changes - 25/Apr/06 10:03 AM
Committed to trunk with revision 397028.
Andrew McIntyre made changes - 26/Apr/06 07:28 AM
Myrna van Lunteren made changes - 28/Apr/06 02:19 AM
Patch
Myrna van Lunteren made changes - 03/May/06 02:36 AM
Myrna van Lunteren made changes - 03/May/06 02:37 AM
Thanks for making the patch for 10.1, as I was unable to svn merge it. Committed to 10.1 with revision 399021.
Andrew McIntyre made changes - 03/May/06 02:50 AM
Myrna van Lunteren made changes - 12/Jul/06 01:40 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Not sure though what is doing the conversion to EBCDIC, when you run on OS 390, hopefully you don't have to covert evryrthing before running the tests.