db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-244) with linux, depending on env setting $LANG and console encoding, some i18n tests fail
Date Fri, 28 Jul 2006 13:19:14 GMT
    [ http://issues.apache.org/jira/browse/DERBY-244?page=comments#action_12424086 ] 
            
Myrna van Lunteren commented on DERBY-244:
------------------------------------------

I think the patch is an improvement. I did not run derbyall, but I ran i18nTest on Linux &
Windows with ibm and sun jvms, and now get the same behavior with iepnegatieve_ES, urlLocale
and messageLocale.sql tests.

The one remark I have is that I still cannot get the LocalizedDisplay.sql and LocalizedConnectionAttribute.sql
test from the i18n directory to behave the same under windows and Linux (with sun jdk 1.4.2.).
For windows, I had to update the masters for these tests, but running them on Linux still
failed for me.
With jdk131, ibm131 and ibm142 the LocalizedDisplay.sql test hung, and LocalizedConnectionAttribute
exits with a MalformedInputException.
It would be nice if we could figure out a way to add these tests to the suites...

--- stack of LocalizedConnectionAttribute on Linux ---
Exception in thread "main" sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
        at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:337)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)
        at java.io.InputStreamReader.read(InputStreamReader.java:208)
        at java.io.BufferedReader.fill(BufferedReader.java:153)
        at java.io.BufferedReader.readLine(BufferedReader.java:316)
        at java.io.BufferedReader.readLine(BufferedReader.java:379)
        at org.apache.derbyTesting.functionTests.harness.RunTest.setDirectories(RunTest.java:729)
        at org.apache.derbyTesting.functionTests.harness.RunTest.main(RunTest.java:262)
----------------------------------------------------------------------------


> with linux, depending on env setting $LANG and console encoding, some i18n tests fail
> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-244
>                 URL: http://issues.apache.org/jira/browse/DERBY-244
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.1.1.0
>         Environment: Linux, with console.encoding *not* UTF-8
>            Reporter: Myrna van Lunteren
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: 244-2.diff, 244-2.stat, 244.diff, 244.stat
>
>
> The tests
>    i18n/messageLocale.sql
>    i18n/urlLocale.sql
>    i18n/iepnegativetests_ES.sql
> will fail on Linux if $LANG and as a result, console.encoding is not set in the same
way as when the test master was created. The behavior is that some characters are not seen
as outside the ANSI range and are displayed as a ?.
> Result is as master when $LANG is en_US.UTF-8
> But then ieptest.sql will fail which will with ibm142 which pass if $LANG is en_US.
> This needs some further analysis, so this description may need to be updated later.
> Whatever the solution is, will need to work for all situations.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message