On more investigation, i think the culprits are lines of the type check(Variant.VT_LPSTR, "�", codepage);
(Note: I can see a question mark within the quote marks above as i type this mail in mozilla, but there is not saying what YOU will see when you read this mail!.. for example, in my previous mail below, i could see four question marks when i composed it, but now that I am replying, one of them has turned automagically into � !!!!! On my terminal, some are ? and some are little squares, depending on my LANG setting :( ) The only was to ensure this is even remotely sane on multiple environment is to use the \uxxxx notation for high-byte string literals. One option maybe to ensure the files are saved as UTF-8, and check them in as binary file into CVS, but even that, i think is fraught with JVM version and LANG settings at compile time. Quoting [EMAIL PROTECTED]: > Actually, scratch the previous stacktrace... > > On UTF-8, the result is: > [junit] Testcase: testNoFormatID took 0.066 sec > [junit] Testcase: testWriteEmptyPropertySet took 0.078 sec > [junit] Testcase: testWriteSimplePropertySet took 0.007 sec > [junit] Testcase: testWriteTwoSections took 0.004 sec > [junit] Testcase: testVariantTypes took 0.004 sec > [junit] Testcase: testCodepages took 0.008 sec > [junit] FAILED > [junit] junit.framework.AssertionFailedError: expected:<�> but > was:<?> > [junit] at junit.framework.Assert.fail(Assert.java:47) > [junit] at junit.framework.Assert.failNotEquals(Assert.java:282) > [junit] at junit.framework.Assert.assertEquals(Assert.java:64) > [junit] at junit.framework.Assert.assertEquals(Assert.java:71) > [junit] at > org.apache.poi.hpsf.basic.TestWrite.check(TestWrite.java:555) > [junit] at > org.apache.poi.hpsf.basic.TestWrite.testCodepages(TestWrite.java:468) > > on en_US-ISO8859-1 (or US-ASCII) the result is: > [junit] Testcase: testNoFormatID took 0.07 sec > [junit] Testcase: testWriteEmptyPropertySet took 0.069 sec > [junit] Testcase: testWriteSimplePropertySet took 0.007 sec > [junit] Testcase: testWriteTwoSections took 0.007 sec > [junit] Testcase: testVariantTypes took 0.005 sec > [junit] FAILED > [junit] junit.framework.AssertionFailedError: expected:<?> but was:<?> > [junit] at junit.framework.Assert.fail(Assert.java:47) > [junit] at junit.framework.Assert.failNotEquals(Assert.java:282) > [junit] at junit.framework.Assert.assertEquals(Assert.java:64) > [junit] at junit.framework.Assert.assertEquals(Assert.java:71) > [junit] at > org.apache.poi.hpsf.basic.TestWrite.check(TestWrite.java:555) > [junit] at > org.apache.poi.hpsf.basic.TestWrite.testVariantTypes(TestWrite.java:423) > > > So different errors on different default charset setting. > > > Quoting [EMAIL PROTECTED]: > > > Rainer, > > > > testVariantTypes in org.apache.poi.hpsf.basic.TestWrite fails with a > message > > > > [junit] junit.framework.AssertionFailedError: expected:<�> but > > was:<?> > > [junit] at junit.framework.Assert.fail(Assert.java:47) > > [junit] at junit.framework.Assert.failNotEquals(Assert.java:282) > > [junit] at junit.framework.Assert.assertEquals(Assert.java:64) > > [junit] at junit.framework.Assert.assertEquals(Assert.java:71) > > [junit] at > > org.apache.poi.hpsf.basic.TestWrite.check(TestWrite.java:555) > > [junit] at > > org.apache.poi.hpsf.basic.TestWrite.testCodepages(TestWrite.java:468) > > > > can you figure out whats wrong? I've tried in linux under both UTF-8 and > > ISO-8859-1 environments. > > > > This is on cvs HEAD. > > > > This is also where gump is failing right now. > > http://gump.covalent.net/log/jakarta-poi-3.html > > > > Regards > > - > > Avik > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
