From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: browse-url does not allow url with a dollar sign Date: Thu, 26 Feb 2004 10:59:43 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <403E340F.1060203@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077818522 13924 80.91.224.253 (26 Feb 2004 18:02:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2004 18:02:02 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 26 19:01:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AwPpV-0008Qm-00 for ; Thu, 26 Feb 2004 19:01:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AwPoG-0005Hu-SZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Feb 2004 13:00:32 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AwPo0-00056p-L1 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 26 Feb 2004 13:00:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AwPnP-0004Zd-RM for bug-gnu-emacs@prep.ai.mit.edu; Thu, 26 Feb 2004 13:00:11 -0500 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1AwPnP-0004YE-CM for bug-gnu-emacs@prep.ai.mit.edu; Thu, 26 Feb 2004 12:59:39 -0500 Original-Received: from mail.fu-berlin.de ([130.133.1.2]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1AwPnK-0004Aa-00 for gnu-emacs-bug@moderators.isc.org; Thu, 26 Feb 2004 18:59:34 +0100 Original-Received: by Mail.FU-Berlin.DE (Exim 4.30) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1AwPnK-000KEO-6t>; Thu, 26 Feb 2004 18:59:34 +0100 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 26 Feb 2004 18:59:34 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 27 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1077818374 54892799 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7106 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7106 Harald Maier wrote: > Start emacs with 'emacs -q'. Put into the *scratch* buffer the following line: > > http://www.warentest.de/pls/sw/SW$NAV.Startup?p_KNR=0&p_E1=2&p_E2=0&p_E3=50&p_E4=0&p_Inh=I:1162925 > > Place point to the url and then type in the following function: > > M-x browse-url-at-point > > The browser program receives as url the following string: > > http://www.warentest.de/pls/sw/SW.Startup?p_KNR=0&p_E1=2&p_E2=0&p_E3=50&p_E4=0&p_Inh=I:1162925 > > It seems that the dollar sign '$' in the url needs to be escaped. I don't see why this is happening. The URL is returned verbatim by the browse-url-url-at-point function and passed to browse-url, and then to browse-url-browser-function (default: browse-url-netscape). None of the browser functions defined in browse-url.el invoke the browser program via a shell, which would require the $ (and any other shell metacharacters) to be quoted -- the only exception is browse-url-default-windows-browser, which invokes "start" on MS-DOS and does quote the URL. -- Kevin Rodgers