public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* property files and character encodings
@ 2001-09-09 22:09 Anthony Green
  2001-09-10 19:27 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Green @ 2001-09-09 22:09 UTC (permalink / raw)
  To: java; +Cc: rhug-rhats

I just figured out why the xalan xsl transformer isn't running.  It's
reading property files (either compiled in, or from disk) which
contain text like this...

# Note that the colon after the protocol needs to be escaped.
{http\u003a//xml.apache.org/xslt}indent-amount=0
{http\u003a//xml.apache.org/xslt}content-handler=org.apache.xalan.serialize.SerializerToHTML
{http\u003a//xml.apache.org/xslt}entities=HTMLEntities.res
{http\u003a//xml.apache.org/xslt}use-url-escaping=yes
{http\u003a//xml.apache.org/xslt}omit-meta-tag=no


Note the escape sequence for `:'.

The program then tries to search this resource bundle for
"{ http://xml.apache.org/xslt}content-handler" ; and doesn't find a
match.  The problem is that \u003a isn't being converted into `:' when
read from a property file.  I don't know what the right solution is.
Advice welcome...

Thanks,

AG

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: property files and character encodings
@ 2001-09-10 20:03 Anthony Green
  2001-09-10 20:15 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Green @ 2001-09-10 20:03 UTC (permalink / raw)
  To: tromey; +Cc: java, rhug-rhats

I came up with a patch of my own.  Can I just check this in?


2001-09-10  Anthony Green  <green@redhat.com>

	* java/util/Properties.java: Increment index while parsing \u
	sequence.

Index: libjava/java/util/Properties.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Properties.java,v
retrieving revision 1.9
diff -c -u -r1.9 Properties.java
--- Properties.java	2001/09/06 17:16:09	1.9
+++ Properties.java	2001/09/11 02:56:03
@@ -185,6 +185,7 @@
 			    char uni = (char) Integer.parseInt
 			      (line.substring(pos, pos + 4), 16);
 			    key.append(uni);
+			    pos += 4;
 			  }	// else throw exception?
 			break;
 		      default:

AG

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-09-10 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-09 22:09 property files and character encodings Anthony Green
2001-09-10 19:27 ` Tom Tromey
2001-09-10 20:03 Anthony Green
2001-09-10 20:15 ` Tom Tromey
2001-09-10 21:55   ` Anthony Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).