From: Tom Tromey <tromey@redhat.com>
To: green@cygnus.com
Cc: java@gcc.gnu.org, rhug-rhats@sources.redhat.com
Subject: Re: File.toURL() problem
Date: Tue, 11 Sep 2001 17:22:00 -0000 [thread overview]
Message-ID: <873d5tdz4q.fsf@creche.redhat.com> (raw)
In-Reply-To: <200109110537.WAA17014@fencer.cygnus.com>
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> xsltc contains
Anthony> (new File(stylesheetName)).toURL()
Anthony> which for the JDK returns "file:myname", but for gcj returns
Anthony> "file:/myname".
The online docs say the return value is system-dependent.
However I think they mean OS-dependent and not VM implementation.
My JDK 1.2 installation returns `file:/tmp/myname' (when run in /tmp).
Classpath looks like it would return `file:///tmp/myname'.
Sigh. `file:' URLs suck, since everybody gets confused about leading
`/'s.
Anyway, I agree we have a bug. The URL we return is clearly not
correct. I've added this to my (stunningly long) to-do list.
Tom
prev parent reply other threads:[~2001-09-11 17:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-10 22:37 Anthony Green
2001-09-11 17:22 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873d5tdz4q.fsf@creche.redhat.com \
--to=tromey@redhat.com \
--cc=green@cygnus.com \
--cc=java@gcc.gnu.org \
--cc=rhug-rhats@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).