[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m-expand-url
あれれ?
From: Hideyuki SHIRAI (白井秀行) <shirai@xxxxxxxxxxx> 曰く
Subject: [emacs-w3m:09611] Re: w3m-expand-url
Message-ID: <20070912.192054.154699146.shirai.hideyuki@xxxxxxxxxxxxxx>
Date: Wed, 12 Sep 2007 19:20:54 +0900 (JST)
> 現在の CVS Head で
>
> (let ((urls '("?y"
> "/../g"
> "../../../g"
> "http:g"
> "./g/."
> "/./g"
> ".."
> "."))
> (i 1)
> url)
> (while (setq url (car urls))
> (insert (format "%d %s" i url))
> (move-to-column 16 t)
> (insert (format "%s\n" (w3m-expand-url url "http://a/b/c/d;p?q")))
> (setq urls (cdr urls))
> (setq i (1+ i))))
>
> ○Solaris の Emacs 23.0.50, Emacs 21.3
> 1 ?y http://a/b/c/d;p?y
> 2 /../g http://a/g
> 3 ../../../g http://a/g
> 4 http:g http://a/b/c/g
> 5 ./g/. http://a/b/c/g
> 6 /./g http://a/g
> 7 .. http://a/b
> 8 . http://a/b/c
>
> ○Meadow3
> 1 ?y http://a/b/c/d;p?y
> 2 /../g http://a/b/c/d;p?q/../g
> 3 ../../../g http://a/b/c/d;p?q../../../g
> 4 http:g http://a/b/c/d;p?qg
> 5 ./g/. http://a/b/c/d;p?q./g/.
> 6 /./g http://a/b/c/d;p?q/./g
> 7 .. http://a/b/c/d;p?q..
> 8 . http://a/b/c/d;p?q.
我が家の Meadow3 で試したら、
1 ?y http://a/b/c/?y
2 /../g http://a/../g
3 ../../../g http://a/g
4 http:g http://a/b/c/g
5 ./g/. http://a/b/c/g
6 /./g http://a/./g
7 .. http://a/b
8 . http://a/b/c
> と挙動が異なるようです。
微妙に違う。。。なんなんだ?
> (w3m-expand-url "../../hoge/fuga.html" "http://exsample.com/foo/bar/")
> "http://exsample.com/../../hoge/fuga.html"
> となるので気づきました。
(w3m-expand-url "../../hoge/fuga.html" "http://exsample.com/foo/bar/")
=> "http://exsample.com/hoge/fuga.html"
ですって。
うーーぬ。基本的にはまったく同じ Meadow3 なのだけど、会社と自宅
でのなにかの設定の違いかなぁ。
Meadow 使っている人、ちょっと試してもらえませんか?
--
白井秀行 (mailto:shirai@xxxxxxxxxxx)