From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Newsgroups: gmane.emacs.bugs Subject: bug#18310: 24.3.93; relative links don't work in eww and Windows 7 Date: Thu, 21 Aug 2014 11:33:32 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408617324 14603 80.91.229.3 (21 Aug 2014 10:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 10:35:24 +0000 (UTC) To: 18310@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 12:35:19 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 1XKPi7-0004D7-AV for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 12:35:15 +0200 Original-Received: from localhost ([::1]:59926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPi6-00021I-Jw for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 06:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPhz-0001y3-52 for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:35:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKPhu-0006cj-Ia for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:35:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPhu-0006bq-Ca for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKPhu-0005DM-39 for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Aug 2014 10:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18310 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140861724219950 (code B ref -1); Thu, 21 Aug 2014 10:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2014 10:34:02 +0000 Original-Received: from localhost ([127.0.0.1]:48769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKPgv-0005BW-Qh for submit@debbugs.gnu.org; Thu, 21 Aug 2014 06:34:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46271) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKPgt-0005BB-JQ for submit@debbugs.gnu.org; Thu, 21 Aug 2014 06:34:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKPgj-0006P9-NH for submit@debbugs.gnu.org; Thu, 21 Aug 2014 06:33:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPgj-0006P4-KW for submit@debbugs.gnu.org; Thu, 21 Aug 2014 06:33:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPgf-0001aK-1p for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:33:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKPga-0006Ii-HX for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:33:44 -0400 Original-Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:62794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKPga-0006IY-Ab for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 06:33:40 -0400 Original-Received: by mail-wi0-f173.google.com with SMTP id f8so8445928wiw.12 for ; Thu, 21 Aug 2014 03:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=jLfY4fCDaWg7W3wycse/Ood6lqGWSaFK7hNZJJ4XLtU=; b=hB4IRESt63ui1U+NnzlK5VYHzdp0xg7gBZobBkzKJX2e5T/x+5CBfC4zTrtK4QbueC x8jvk8k8zblgDOOyVpPcZ53OS59w6itStbviIF9ZACYpP9Uk/DnTKkq1R7adIzG1NUKD IPnfH7dmadIWDrTaSMdQLcFTOEl9VuSfGbnD4tKDZgku9IhsFAR4BuiokAQ2idMucL8t 9IT3o0pU+kT017Qc71+5HfMpJAh4jATYLVN/JPtSYsFkDMtBak4At+RSAe/uy4yR2n1C G0HO5G3ss/PORF8nllWrNUklzwqkaXCljoFwbsaqtGyKVfwDGEEUjWbvmKUcsKDs3owE C0Cg== X-Received: by 10.180.218.4 with SMTP id pc4mr20392263wic.15.1408617219462; Thu, 21 Aug 2014 03:33:39 -0700 (PDT) Original-Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by mx.google.com with ESMTPSA id je17sm18628441wic.22.2014.08.21.03.33.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Aug 2014 03:33:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:92561 Archived-At: Hi maintainers, On Windows 7: emacs -Q M-x eww RET http://www.lispworks.com/documentation/HyperSpec/Front/index.htm RET Try to follow any of the relative links on the page, they point to something strange like "www.lispworks.comz" (note the final "z") which basically breaks all navigation. The `shr-url' property at point shows http://www.lispworks.comz:/documentation/HyperSpec/Front/StartPts.htm And everything indicates this is a consequence of a previous bug fix of mine for bug#17217 [1], which does not manifest itself in my Linux box. I'm pretty sure it also did not manifest itself on my old Windows XP box. In that fix, I used the function `expand-file-name' in `shr-expand-url' to compute the expanded URL for "totally relative" case of hrefs like "../something". This new bug seems to be caused by `expand-file-name' insisting on producing a valid windows pathname (with drive letter), even though it was passed the second argument DEFAULT-DIRECTORY. That is, on my Windows 7 system: (expand-file-name "../bla" "/something/else") expands to "z:/something/bla" Whereas I intented it to expand to "/something/bla". My HOME variable is set to at "z:", but unsetting it does not help either. I don't have time right now to look at the C-code for `expand-file-name'. Jo=E3o [1]: http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-04/msg00266.html In GNU Emacs 24.3.93.1 (i686-pc-mingw32) of 2014-08-15 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1' Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: C.UTF-8 locale-coding-system: cp1252