xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ne...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/readers MIME2Java.java
Date Tue, 13 Feb 2001 15:44:55 GMT
neilg       01/02/13 07:44:55

  Modified:    java/src/org/apache/xerces/readers MIME2Java.java
  Log:
  added support for Cp1252.  This is based on a patch to XML4J2.0.15 submitted by Paul Cooper
<pcooper@uk.ibm.com>.
  
  Revision  Changes    Path
  1.3       +8 -1      xml-xerces/java/src/org/apache/xerces/readers/MIME2Java.java
  
  Index: MIME2Java.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/readers/MIME2Java.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MIME2Java.java	2000/12/14 19:21:46	1.2
  +++ MIME2Java.java	2001/02/13 15:44:55	1.3
  @@ -518,7 +518,7 @@
    *  </TR>
    * </TABLE>
    * 
  - * @version $Id: MIME2Java.java,v 1.2 2000/12/14 19:21:46 lehors Exp $
  + * @version $Id: MIME2Java.java,v 1.3 2001/02/13 15:44:55 neilg Exp $
    * @author TAMURA Kent &lt;kent@trl.ibm.co.jp&gt;
    */
   public class MIME2Java {
  @@ -578,6 +578,8 @@
           s_enchash.put("EBCDIC-CP-IS",    "CP871");
           s_enchash.put("EBCDIC-CP-AR2",   "CP918");
   
  +	// Add support for Cp1252
  +        s_enchash.put("CP1252",   "Cp1252");
                                                   // j:CNS11643 -> EUC-TW?
                                                   // ISO-2022-CN? ISO-2022-CN-EXT?
                                                   
  @@ -622,6 +624,11 @@
           s_revhash.put("CP870", "EBCDIC-CP-YU");
           s_revhash.put("CP871", "EBCDIC-CP-IS");
           s_revhash.put("CP918", "EBCDIC-CP-AR2");
  +
  +	// Add support for Cp1252
  +	// Since this code page should be written out in mixed case,
  +	// there is no need to reverse the function.
  +        s_revhash.put("Cp1252", "Cp1252");
       }
   
       private MIME2Java() {
  
  
  

Mime
View raw message