logo       

[emacs-w3m:04549] Re: Forward: Bug#177243: w3m-el: cookies broken for Austr: msg#00041

emacs.w3m

Subject: [emacs-w3m:04549] Re: Forward: Bug#177243: w3m-el: cookies broken for Australian XEmacs users

>> On Sun, 19 Jan 2003 00:04:03 +0900
>> ukai@xxxxxxxxxxxx (Fumitoshi UKAI) said as follows:

>w3m.el chooses the wrong implementation of w3m-time-parse-string,
>since the test fails. The test fails due to a misunderstanding over
>the timezone "EST", but otherwise the original version is good (the
>later version doesn't work at all).

とりあえず,タイムゾーンに依存しないようにチェック部分を修正してみまし
たが,どうでしょうか.

--
土屋 雅稔 ( TSUCHIYA Masatoshi )

diff -u -u -r1.776 w3m.el
--- w3m.el 14 Jan 2003 04:41:47 -0000 1.776
+++ w3m.el 19 Jan 2003 08:08:57 -0000
@@ -1912,11 +1916,8 @@

;; When buggy timezone.el is loaded, parse-time.el will be used
;; instead of timezone.el.
-(unless (let* ((x (current-time))
- (system-time-locale "C")
- (y (w3m-time-parse-string
- (format-time-string "%A, %d-%b-%y %T %Z" x))))
- (and (eq (car x) (car y)) (eq (nth 1 x) (nth 1 y))))
+(unless (equal (w3m-time-parse-string "Thursday, 01-Jan-1970 00:00:00 GMT")
+ '(0 0))
(ignore-errors
(require 'parse-time))
(defun w3m-time-parse-string (string)




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise