jkesselm 01/10/24 11:22:15
Modified: java/src/org/apache/xalan/serialize CharInfo.java
Log:
Microsoft VJ++ workaround. Should never arise in any reasonably
standards-compliant Java environment, but VJ++ isn't...
Revision Changes Path
1.10 +9 -1
xml-xalan/java/src/org/apache/xalan/serialize/CharInfo.java
Index: CharInfo.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/CharInfo.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- CharInfo.java 2001/10/16 18:16:14 1.9
+++ CharInfo.java 2001/10/24 18:22:15 1.10
@@ -171,7 +171,15 @@
// Fix Bugzilla#4000: force reading in UTF-8
// This creates the de facto standard that Xalan's resource
// files must be encoded in UTF-8
- reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
+ // Problem: MSVJ++ doesn't understand this request.
Fallback added.
+ try
+ {
+ reader = new BufferedReader(new
InputStreamReader(is, "UTF-8"));
+ }
+ catch(java.io.UnsupportedEncodingException e)
+ {
+ reader = new BufferedReader(new
InputStreamReader(is));
+ }
line = reader.readLine();
while (line != null)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]