Hi Claude,

thank you very much for helping me out.

Some thoughts so far:
 - default encoding on z/LINUX is UTF8
 - The file LICENSE.txt that we deliver is not UTF8
 - if I show the properties of the file in my Eclipse Workspace, it tells me "Default (inherited from container: Cp1252)"
 - I don't know if something could happen to the file encoding when putting together the alpha release (maybe it inherits from the platform that ran the build)

So I suggest I put together a snapshot build for you, where I use the lowest common denominator encodings "US-ASCII" and "ISO-8859-1" to construct the InputStreamReader.
And - if you don't mind - let you download and test it (this will require about 10 minutes of your time).

Please give me a day or two for that.


Thanks,
Oti




On 10/26/06, claudef@br.ibm.com <claudef@br.ibm.com> wrote:

Dear Oti,

 i“ve run the Java program that shows the encoding property, both under Windows XP  
and z/LINIUX. Both tests did show a different default values for CharacterSet settings.  

Results shown on Windows XP (a text file saved with textpad editor tool, file name "test.txt")
C:\Java\myprojects\Linux>java teste1
Encoding is:Cp1252

Results shown on z/LINUX
claudef@ckit:/opt/jython> ls -l > test.txt
claudef@ckit:/opt/jython> java teste1
Encoding is:UTF8

This difference may be the key to the problem of Java 5.0 class "InputStreamReader" and
"sun.io.MalformedInputException" error.
   
Hope this test is helpful for your debug.  

Regards,
Claude  

Enclosure: Source of debug program
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.FileInputStream;

public class teste1 {
                  /** shows default encoding */
                  public static void main(String[] args) {
                  try {
              FileInputStream fis = new FileInputStream("test.txt");
              InputStreamReader defaultReader = new InputStreamReader(fis);
              String defaultEncoding = defaultReader.getEncoding();
              System.out.println("Encoding is:" + defaultEncoding);
                      } catch (Exception e) {
                                                              System.out.println("Error:" + e);
                                                                } // end of catch
          }
    }



Jython installer error under z/LINUX:
 Error message:
>  claudef@ckit:/opt/jython> java -jar jython_Release_2_2alpha1.jar -d
> Jython_2_2_a1 -s
> org.python.util.install.InstallerException: Error accessing
> jar file
>         at org.python.util.install.JarInfo.<init>(JarInfo.java:39)
>         at
> org.python.util.install.Installation.main(Installation.java:46)
> Caused by: sun.io.MalformedInputException
>         at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262)
>         at
> sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:3
> 14)
>         at
> sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364)
>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)
>         at java.io.InputStreamReader.read(InputStreamReader.java:212)
>         at java.io.BufferedReader.fill(BufferedReader.java:157)
>         at java.io.BufferedReader.readLine(BufferedReader.java:320)
>         at java.io.BufferedReader.readLine(BufferedReader.java:383)
>         at
> org.python.util.install.JarInfo.readLicense(JarInfo.java:141)
>         at
> org.python.util.install.JarInfo.readJarInfo(JarInfo.java:125)
>         at org.python.util.install.JarInfo.<init>(JarInfo.java:37)
>         ... 1 more
> claudef@ckit:/opt/jython>
>
>  Java utility command  "jar tf jython_Release_2_2alpha1.jar" is able to
> interpret the jar install file,
>  displaying its contents. Encoding looks good.
>
> This is theJava version running on the server:
> claudef@ckit:/opt/jython> java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pxz64dev-20061002a
> (SR3) )
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux s390x-64
> j9vmxz6423-20061001 (
> JIT enabled)



Claude Falbriard
Developer
AMS Hortolāndia / SP - Brazil
phone: +55 13 8117 3316
e-mail:  claudef@br.ibm.com