[ 
https://issues.apache.org/jira/browse/DERBY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668908#action_12668908
 ] 

Kathey Marsden commented on DERBY-4035:
---------------------------------------

The test harness rewrites the sql file in the native encoding to the test 
directory and then runs the test from there. So after you run the test (if it 
fails or if you run with keepfiels) you see in the test directory the sql file, 
for example: JapanCodeConversion.sql     

It is this sql file that is in the native encoding and is causing the problem 
when fed to ij with derby.ui.codeset=UTF-8.

In the RunTest code, this copy happens I think near line 710 where we have:
710:
    // Read the test file and copy it to the outDir
            // except for multi tests (for multi we just need to locate it)
            BufferedReader in = new BufferedReader(new InputStreamReader(is, 
"UTF-8"));
...
715
script = new File((new File(userdir, scriptFileName)).getCanonicalPath()); 
...
732:
   PrintWriter pw = null;
            pw = new PrintWriter( new BufferedWriter
                (new FileWriter(script.getPath()), 10000), true );
                
            String str = "";
            while ( (str = in.readLine()) != null )
            {
                pw.println(str);
            }






> i18n tests fail with Lexical error on z/os 
> -------------------------------------------
>
>                 Key: DERBY-4035
>                 URL: https://issues.apache.org/jira/browse/DERBY-4035
>             Project: Derby
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 10.3.3.0, 10.5.0.0
>         Environment: java version "1.6.0"
> Java(TM) SE Runtime Environment (build pmz6460sr3-20081108_01(SR3))
> IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 z/OS s390x-64 
> jvmmz6460-20081107_25433 (JIT enabled, AOT enabled)
> J9VM - 20081105_025433_BHdSMr
> JIT  - r9_20081031_1330
> GC   - 20081027_AB)
> JCL  - 20081106_01
> $
>            Reporter: Kathey Marsden
>
> On z/os  the following tests fail with a Lexical error e.g.
>  ERROR 42X02: Lexical error at line 1, column 1.  Encountered: "`" (96), 
> after : "".  There also seems to be some garbage in the output.  The tests 
> that fail with these errors are:
> derbyall/derbyall.fail:i18n/JapanCodeConversion.sql
> derbyall/derbyall.fail:i18n/UnicodeEscape_JP.sql
> derbyall/derbyall.fail:i18n/I18NImportExport.sql
> derbyall/derbyall.fail:i18n/urlLocale.sql
> derbyall/derbyall.fail:i18n/messageLocale.sql
> derbyall/derbyall.fail:i18n/caseI_tr_TR.sql
> derbyall/derbyall.fail:i18n/iepnegativetests_ES.sql
> The error I think is coming from ij, it is not in the derby.log and there is 
> not a stack trace anywhere.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to