In the thread below, the problem is discussed. Short story: base64 UTF8 encoding is somehow garbled when run under GIJ. http://mail.gnu.org/archive/html/classpathx-discuss/2004-01/msg00025.html Øyvind
Created attachment 5601 [details] The .jar's required I recommend getting these jars from GNU Classpath/Classpathx, but here they are just in case.
Correction of first comment: this problem happens with GCJ. I have not tested with GIJ. Extract from mailing list discussion follows: Attached is a small case to reproduce the problem. To compile: \wingcc\bin\gcj -c -o javax-security.o javax-security.jar \wingcc\bin\gcj -c -o inetlib.o --classpath jsse.jar;javax-security.jar inetlib.jar \wingcc\bin\gcj -c -o gnumail.o --classpath inetlib.jar;activation.jar gnumail.jar \wingcc\bin\gcj -c -o activation.o activation.jar \wingcc\bin\gcj -c -o smtp.o --classpath gnumail.jar;inetlib.jar smtp.jar \wingcc\bin\gcj -c -o jsse.o jsse.jar \wingcc\bin\gcj -c -o send.o Send.java --classpath gnumail.jar \wingcc\bin\gcj -c -o dummy.o Dummy.java \wingcc\bin\gcj -s -o send.exe activation.o gnumail.o inetlib.o smtp.o jsse.o send.o dummy.o javax-security.o --main=Send To test: c:\temp\foo> send mysmtp.sever.com sender@bogus.example.com receiver@bogus.example.com
Tom Tromey from RedHat wrote: Hmm, that sounds frightening, what with us so close to a release. The \0 seems to occur every 200 characters. That's suggestive... look around for a 200 char or byte buffer and then look in that area for bugs. It would help if you could reproduce this in a less complex environment. E.g. by duplicating your I/O paths in a small program and then feeding it some predefined text file. Tom
Created attachment 5716 [details] This is the test application source
Created attachment 5717 [details] Started test app afresh I attached the wrong files. Starting afresh with a complete .zip of everything that is needed. - place Mohans latest build in \wingcc - unzip smalltestapp - compile.cmd - send mysmtp.sever.com sender@bogus.example.com receiver@bogus.example.com The message will contain � Øyvind
GIJ Doesn't work either. \wingcc\bin\gij -cp java-security.jar;inetlib.jar;activation.jar;smt p.jar;gnumail.jar;jsse.jar;. Send mysmtp.sever.com sender@bogus.example.com receiver@bogus.example.com W/Suns JRE it works fine and there is no � in the message. java -cp java- security.jar;inetlib.jar;activation.jar;smtp.jar;gnumail.jar;jsse.jar;. Send mail.broadpark.no oyvind.harboe@zylin.com oharboe@broadpark.no
*** This bug has been marked as a duplicate of 14670 ***