Gnus development mailing list
 help / color / mirror / Atom feed
* mm-view.el uses w3-coding-system-for-mime-charset
@ 2001-06-28 10:09 Vladimir Volovich
  2001-06-28 22:04 ` Raja R Harinath
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Volovich @ 2001-06-28 10:09 UTC (permalink / raw)


Hi,

there is a call to w3-coding-system-for-mime-charset in mm-view.el,
but current w3 (from cvs) does not have such a function anymore.

as a result, i get an error when viewing html parts.

Best,
v.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm-view.el uses w3-coding-system-for-mime-charset
  2001-06-28 10:09 mm-view.el uses w3-coding-system-for-mime-charset Vladimir Volovich
@ 2001-06-28 22:04 ` Raja R Harinath
  2001-07-10  0:32   ` ShengHuo ZHU
  0 siblings, 1 reply; 3+ messages in thread
From: Raja R Harinath @ 2001-06-28 22:04 UTC (permalink / raw)
  Cc: ding

Hi,

Vladimir Volovich <vvv@vsu.ru> writes:
> there is a call to w3-coding-system-for-mime-charset in mm-view.el,
> but current w3 (from cvs) does not have such a function anymore.
> 
> as a result, i get an error when viewing html parts.

I'm using the following to fix that.  Actually, mm-view.el should
probably just use mm-charset-to-coding-system all the time -- it was
derived from w3-c-s-f-m-c, IIRC.

- Hari

Index: mm-view.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mm-view.el,v
retrieving revision 6.7
diff -u -p -u -r6.7 mm-view.el
--- mm-view.el  2001/05/29 09:23:59     6.7
+++ mm-view.el  2001/06/28 22:01:08
@@ -104,11 +104,14 @@
                    (and (boundp 'w3-meta-charset-content-type-regexp)
                         (re-search-forward
                          w3-meta-charset-content-type-regexp nil t)))
-               (setq charset (or (w3-coding-system-for-mime-charset
-                                  (buffer-substring-no-properties
-                                   (match-beginning 2)
-                                   (match-end 2)))
-                                 charset)))
+               (setq charset 
+                     (or (let ((bsubstr (buffer-substring-no-properties
+                                         (match-beginning 2)
+                                         (match-end 2))))
+                           (if (fboundp 'w3-coding-system-for-mime-charset)
+                               (w3-coding-system-for-mime-charset bsubstr)
+                             (mm-charset-to-coding-system bsubstr)))
+                         charset)))
            (delete-region (point-min) (point-max))
            (insert (mm-decode-string text charset))
            (save-window-excursion


-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm-view.el uses w3-coding-system-for-mime-charset
  2001-06-28 22:04 ` Raja R Harinath
@ 2001-07-10  0:32   ` ShengHuo ZHU
  0 siblings, 0 replies; 3+ messages in thread
From: ShengHuo ZHU @ 2001-07-10  0:32 UTC (permalink / raw)


Raja R Harinath <harinath@cs.umn.edu> writes:

> Hi,
> 
> Vladimir Volovich <vvv@vsu.ru> writes:
>> there is a call to w3-coding-system-for-mime-charset in mm-view.el,
>> but current w3 (from cvs) does not have such a function anymore.
>> 
>> as a result, i get an error when viewing html parts.
> 
> I'm using the following to fix that.  Actually, mm-view.el should
> probably just use mm-charset-to-coding-system all the time -- it was
> derived from w3-c-s-f-m-c, IIRC.

Thanks. Installed.

ShengHuo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-10  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-28 10:09 mm-view.el uses w3-coding-system-for-mime-charset Vladimir Volovich
2001-06-28 22:04 ` Raja R Harinath
2001-07-10  0:32   ` ShengHuo ZHU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).