[Htmlparser-cvs] htmlparser/src/org/htmlparser PrototypicalNodeFactory.java,1.4,1.5
Brought to you by:
derrickoswald
From: <der...@pr...> - 2004-01-27 13:22:41
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26191 Modified Files: PrototypicalNodeFactory.java Log Message: Fix bug #883664 toUpperCase on tag names and attributes depends on locale Added locale information to all relevant toUpperCase() calls, with an English locale for tag names and attribute names, or developers choice of locale for methods that do uppercase conversion as part of their algorithms. Index: PrototypicalNodeFactory.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/PrototypicalNodeFactory.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PrototypicalNodeFactory.java 24 Jan 2004 18:13:29 -0000 1.4 --- PrototypicalNodeFactory.java 25 Jan 2004 21:32:56 -0000 1.5 *************** *** 29,34 **** --- 29,36 ---- import java.io.Serializable; import java.util.Hashtable; + import java.util.Locale; import java.util.Map; import java.util.Vector; + import org.htmlparser.lexer.Page; import org.htmlparser.lexer.nodes.Attribute; *************** *** 245,249 **** try { ! id = id.toUpperCase (); if (!id.startsWith ("/")) { --- 247,251 ---- try { ! id = id.toUpperCase (Locale.ENGLISH); if (!id.startsWith ("/")) { |