[ http://issues.apache.org/jira/browse/XALANJ-1621?page=all ]
Brian Minchau updated XALANJ-1621:
----------------------------------
Version: 2.5Dx
(was: Latest Development Code)
> Wrong encoding with redirect:write in xsltc
> -------------------------------------------
>
> Key: XALANJ-1621
> URL: http://issues.apache.org/jira/browse/XALANJ-1621
> Project: XalanJ2
> Type: Bug
> Components: XSLTC
> Versions: 2.5Dx
> Environment: Operating System: All
> Platform: All
> Reporter: Franz Fackelmann
> Assignee: Xalan Developers Mailing List
>
> When using redirect:write with translets made by XSLTC (Xalan-J 2.5.1) the
> output is in the wrong encoding. Instead of the encoding specified in the
> xslt:output element the output is in the default OS encoding. The following
> patch should fix the problem (class
> org.apache.xalan.xsltc.runtime.AbstractTranslet):
> 68c68,76
> < import java.io.FileWriter;
> ---
> > import java.io.File;
> > import java.io.FileOutputStream;
> > import java.io.OutputStream;
> >
> > import java.io.Writer;
> > import java.io.OutputStreamWriter;
> > import java.io.BufferedWriter;
> > import java.io.FileOutputStream;
> >
> 486c494,495
> < factory.setWriter(new FileWriter(filename, append));
> ---
> > FileOutputStream fs = new FileOutputStream (filename, append);
> > factory.setWriter(new BufferedWriter(new OutputStreamWriter(fs,
> > _encoding)));
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]