sboag       01/07/27 06:33:23

  Modified:    java/src/org/apache/xalan/transformer NodeSortKey.java
  Log:
  Submitted fix for http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2851.
  
  Revision  Changes    Path
  1.9       +16 -2     
xml-xalan/java/src/org/apache/xalan/transformer/NodeSortKey.java
  
  Index: NodeSortKey.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/NodeSortKey.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- NodeSortKey.java  2001/06/12 19:15:26     1.8
  +++ NodeSortKey.java  2001/07/27 13:33:23     1.9
  @@ -125,8 +125,22 @@
   
       if (null != langValue && m_treatAsNumbers == false)
       {
  -      m_locale = new Locale(langValue.toUpperCase(),
  -                            Locale.getDefault().getDisplayCountry());
  +      // See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2851
  +      // The constructor of Locale is defined as 
  +      //   public Locale(String language, String country)
  +      // with
  +      //   language - lowercase two-letter ISO-639 code
  +      //   country - uppercase two-letter ISO-3166 code
  +      // a) language must be provided as a lower-case ISO-code 
  +      //    instead of an upper-case code
  +      // b) country must be provided as an ISO-code 
  +      //    instead of a full localized country name (e.g. "France")
  +      m_locale = new Locale(langValue.toLowerCase(), 
  +                  Locale.getDefault().getCountry());
  +                  
  +      // (old, before bug report 2851).
  +      //  m_locale = new Locale(langValue.toUpperCase(),
  +      //                        Locale.getDefault().getDisplayCountry());    
                
   
         if (null == m_locale)
         {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to