From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 25 08:18:03 2014 Received: (at submit) by debbugs.gnu.org; 25 Oct 2014 12:18:03 +0000 Received: from localhost ([127.0.0.1]:34666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi0IE-0005Kj-Ez for submit@debbugs.gnu.org; Sat, 25 Oct 2014 08:18:02 -0400 Received: from fely.am-1.org ([78.47.74.50]:37409) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi0IB-0005KI-Ng for submit@debbugs.gnu.org; Sat, 25 Oct 2014 08:18:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Type:MIME-Version:Message-ID:Date:Sender:Subject:To:From; bh=y7NiKaVkyUBW+4iee4s20vSDLsbvVBzC/Cmj/UZl6UI=; b=NTXOBXrhWZ6xd7H89BM4OkEpISQAZZULUz5zrDJ0AVnKp8KKPkDxDw72ox/UdazLseMvd8Kz5sIzBFyOA7BCt7PeANkvJsCUYpZJMfCVePGHYWROF7RnUSFxyGIciA2n46Sj/l8OBm+540vPtFamLOWDacVXZ3jj12ygOFYoOIc=; Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xi0I9-0008TX-Qw for submit@debbugs.gnu.org; Sat, 25 Oct 2014 12:17:58 +0000 Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xi0I2-00084k-SB for submit@debbugs.gnu.org; Sat, 25 Oct 2014 19:17:50 +0700 From: Ivan Shmakov To: submit@debbugs.gnu.org Subject: eww does not handle file:/file/name properly Date: Sat, 25 Oct 2014 12:17:50 +0000 Message-ID: <87d29ge429.fsf@violet.siamics.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Package: emacs Severity: minor Tags: patch The condition currently employed in =E2=80=98eww=E2=80=99 for file: scheme= URIs is a bit more restrictive than necessary: 156 ;;;###autoload 157 (defun eww (url) 158 "Fetch URL and render the page. 159 If the input doesn't look like an URL or a domain name, the 160 word(s) will be searched for via `eww-search-prefix'." 161 (interactive "sEnter URL or keywords: ") 162 (cond ((string-match-p "\\`file://" url)) 163 ((string-match-p "\\`ftp://" url) 164 (user-error "FTP is not supported.")) While RFC=C2=A01738 does not allow for no-authority file: URIs, RFC=C2=A03986 makes the authority part optional /in general,/ and recognizing file:/name as synonymous to file:///name looks like a common extension over the RFC=C2=A01738 syntax. I thus suggest the condition to be relaxed to only include a single slash after =E2=80=98file:=E2=80=99. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A --=-=-= Content-Type: text/diff Content-Disposition: inline --- eww.el +++ eww.el @@ -159,7 +159,7 @@ eww (url) If the input doesn't look like an URL or a domain name, the word(s) will be searched for via `eww-search-prefix'." (interactive "sEnter URL or keywords: ") - (cond ((string-match-p "\\`file://" url)) + (cond ((string-match-p "\\`file:/" url)) ((string-match-p "\\`ftp://" url) (user-error "FTP is not supported.")) (t --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 02 16:08:20 2014 Received: (at 18825-done) by debbugs.gnu.org; 2 Nov 2014 21:08:20 +0000 Received: from localhost ([127.0.0.1]:46439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl2No-00074Q-6u for submit@debbugs.gnu.org; Sun, 02 Nov 2014 16:08:20 -0500 Received: from mail-qg0-f53.google.com ([209.85.192.53]:47112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl2Nm-000743-7F for 18825-done@debbugs.gnu.org; Sun, 02 Nov 2014 16:08:18 -0500 Received: by mail-qg0-f53.google.com with SMTP id z107so7841015qgd.40 for <18825-done@debbugs.gnu.org>; Sun, 02 Nov 2014 13:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=LBTAlzsENHHy4+IrW57cBfnrs1k7aGeBQO3GQ0eogVI=; b=Xp5aGrMsuq3Jmtnj/an5ELH0Rt8+pq6vVUeAhCzhF0/pIZnoWOnoOSd+ZJNVtLIXVs yKTLOERS9mJERBNzOxIuaj6iv4TheyBXQQhHXDqCoCGaSd4VP2ESX8AzSHwiCHBJqtOt D2W/pWsBWo2Bp+KUHpBtx2vRw4QOnOFpjLhwo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=LBTAlzsENHHy4+IrW57cBfnrs1k7aGeBQO3GQ0eogVI=; b=mZgsy5Tl5O/lwNku6LCkJws9YpjJwpZDK0OIdI/cJ8ClFiPwUCGFkWN+Q0aXbgXCeq sFGbAtY/XX8iFKQ5xgppwUCzayvxgKFU37QdmZyiFjQ/4dzUFBEqgwYXtJIONOnXAwkg 2H9ReCNMG9NZu4mBuxZJhtU1NY+T7Ot+tly9rOHat980Y8z4fydWL1p6GBqXBt+MfW4b wrASuGAem1GZeUpZNnq9mv5bQZ77RDlusOlFQMULGmscbfVt1ursVza9wXN/Dy7Zig/+ EAwfsLu+l/o/wGjlY02XhJaO7pNxpBfVqlSqrBdoWReqQ8/rbO/Gvf1NPYkkoRlHpu1X 2tgA== X-Gm-Message-State: ALoCoQlhei3rED3q/kIhej4XBGKq7yQOUAPFUmtfItVF5sx1AdPn5C/oQQS0w84Kt4/XvRTVVg/Q X-Received: by 10.140.92.37 with SMTP id a34mr50801952qge.103.1414962492701; Sun, 02 Nov 2014 13:08:12 -0800 (PST) Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id j17sm15208258qae.10.2014.11.02.13.08.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Nov 2014 13:08:12 -0800 (PST) From: Ted Zlatanov To: Ivan Shmakov Subject: Re: bug#18825: eww does not handle file:/file/name properly Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87d29ge429.fsf@violet.siamics.net> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sun, 02 Nov 2014 16:08:24 -0500 In-Reply-To: <87d29ge429.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sat, 25 Oct 2014 12:17:50 +0000") Message-ID: <87mw89cnuf.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18825-done Cc: 18825-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, 25 Oct 2014 12:17:50 +0000 Ivan Shmakov wrote: IS> - (cond ((string-match-p "\\`file://" url)) IS> + (cond ((string-match-p "\\`file:/" url)) Thanks for the patch; applied in your name. Closing. Ted From unknown Fri Jun 20 19:58:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 01 Dec 2014 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator