From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#18603: eww fails to recognize URIs with IPv6 addresses in them Date: Thu, 02 Oct 2014 09:37:49 +0000 Message-ID: <87wq8ierrm.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1412242763 2233 80.91.229.3 (2 Oct 2014 09:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2014 09:39:23 +0000 (UTC) To: 18603@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 02 11:39:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XZcqx-0001XF-IY for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 11:39:15 +0200 Original-Received: from localhost ([::1]:32951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcqx-0007W7-7h for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Oct 2014 05:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcqp-0007Vn-DD for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:39:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZcqk-000616-RM for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:39:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZcqk-00060x-EI for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZcqk-0008AO-5N for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 05:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141224268531322 (code B ref -1); Thu, 02 Oct 2014 09:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Oct 2014 09:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:58068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZcpo-000897-Ia for submit@debbugs.gnu.org; Thu, 02 Oct 2014 05:38:04 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:34887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZcpl-00088c-Rm for submit@debbugs.gnu.org; Thu, 02 Oct 2014 05:38:02 -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=rA4N3s/iXbw2mH4rM6o3ihl3sFUSrmbYB3XYalDL/6o=; b=r2gbk3cVdicLXTPEKE0IvaFftC20jLFzbB6R2l6H7l/1W1+fbC7oimaZxO7xs+QWIoxoK+i7dRgt540oOtbUYDhmkU8ZNLZbzUwMj4EayhAD08/6OYOXxmFpu2FtLpfiNblehkeoJCR+JnOeD5/owykRQy5gtdmqc+yWRoHoSIU=; Original-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 1XZcpj-0006ru-Ji for submit@debbugs.gnu.org; Thu, 02 Oct 2014 09:38:00 +0000 Original-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 1XZcpZ-0001Ld-Vk for submit@debbugs.gnu.org; Thu, 02 Oct 2014 16:37:50 +0700 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94016 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Package: emacs Severity: normal As of 94758757dfd5, the =E2=80=98eww=E2=80=99 function uses the presence o= f a full stop character in its =E2=80=98url=E2=80=99 argument as one of the conditions to consider the value a URI proper (as opposed to: keywords to pass to the search engine, as per eww-search-prefix.) This, however, fails, as IPv6 addresses are colon-delimited, and thus IPv6-based URLs do not usually contain any full stop characters (as in: https://[::1]/.) Please thus consider the trivial patch MIMEd, which makes EWW use =E2=80=98[.:]=E2=80=99 (was: =E2=80=98\.=E2=80=99) as the respective R= E. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A --=-=-= Content-Type: text/diff Content-Disposition: inline --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -154,7 +154,7 @@ defun eww (url) (t (if (and (= (length (split-string url)) 1) (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url)) - (> (length (split-string url "\\.")) 1)) + (> (length (split-string url "[.:]")) 1)) (string-match eww-local-regex url))) (progn (unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url) --=-=-=--