On Sun, 2004-09-12 at 09:32, Avik Sengupta wrote:
> The testVariantTypes test in org.apache.poi.hpsf.basic.TestWrite fail if
> the local environment is set to UTF8, but passes if env is ISO-8859-1. In
> particular, the failures start at :
> check(Variant.VT_LPSTR,
> "\u00e4", codepage);
I checked in some changes to deal with this.
Some tests depend on the default character set which must be capable to
handle 8-bit characters. If the default character set is US-ASCII this
is not the case since it handles 7-bit characters only.
The org.apache.poi.hpsf.basic.TestWrite testcase now checks whether the
default character set is good enough or not and skips some tests if it
is not. In an UTF-8 environment all tests work fine, e.g. by setting
LANG to de_DE.UTF-8.
Avik, if the tests don't run for you under UTF-8 I suppose you have set
LANG to some inappropriate value, the JVM picks US-ASCII as the default
character set and the tests fail. Please try again what you did! The
error message now tells you the name of your default character set.
I don't know if it is possible to set the default character set other
than specifying a suitable LANG variable. And then I also don't know how
to set that variable to run the testcases.
Any clues?
Best regards
Rainer Klute
Rainer Klute IT-Consulting GmbH
Dipl.-Inform.
Rainer Klute E-Mail: [EMAIL PROTECTED]
K�rner Grund 24 Telefon: +49 172 2324824
D-44143 Dortmund Telefax: +49 231 5349423
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]