/*
******************************************************************************
- * Copyright (C) 2003-2010, International Business Machines Corporation and *
+ * Copyright (C) 2003-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*/
}
while (++suffix < lang.length ()) {
c = lang.charAt(suffix);
- if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))){
+ if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'))){
break;
}
}
}
if(!isXmlLang(name)){
System.err.println("The attribute "+ lang + "=\""+ name +
- "\" of <file> element does not satisfy RFC 1766 conditions.");
+ "\" of <file> element is invalid.");
System.exit(-1);
}
return name;