>>>> "Kyle" == Kyle Jones
<kyle_jones(a)wonderworks.com> writes:
Kyle> Charles Hines writes:
> So, I guess I'm looking for a couple of hints on how to
either
> get it to always display the text/plain portion instead of the
> text/html portion, or how to get around that "bad" character
> (if I remember correctly it's some encoding of a single-quote,
> at least that's what it was on past messages I saw with this
> problem). Is anyone else seeing this problem and figured out
> how to work around it? Since this particular email went to the
> list, I figured that if anyone else was seeing this problem now
> would be the time to ask. :)
Kyle> If you build XEmacs with MULE disabled I think the problem will
Kyle> go away.
Actually, I always build --with-mule=no, so I don't think that's affecting
this.
Kyle> My current working theory is that when VM calls decode-coding-region
Kyle> on a region that contain one of those strange Windows-only characters
Kyle> like \222 it gets converted into something that's either invalid as a
I think that's it, the \222 is tickling something in the back of my head from
the last time I tried looking into this. I was really confused as to why they
were bothering to encode a single-quote character like that.
Kyle> character or something unexpected by code further along. If you
Kyle> could provide a Lisp backtrace, we could determine whether it is VM
Kyle> or W3 that is croaking, and proceed accordingly.
Kyle> (require 'vm)
Kyle> (load "vm-mime.el")
Kyle> (setq debug-on-signal t)
Kyle> and then reproduce the problem to get the backtrace.
Doh! I meant to do that again (I had done gotten a backtrace when
investigating this in the past) and put that in there in my original message.
Sorry about that, doing it now...ok, here it is:
======================================================================
Signaling: (wrong-type-argument char-or-string-p 8211)
w3-parse-buffer(#<buffer " *w3-region*">)
byte-code("..." [glyph parse url-current-object url widget
w3-image-widgets-waiting get-buffer-create " *w3-region*" erase-buffer
w3-parse-buffer w3-draw-tree nil widget-get :src assoc (widget-value-set widget glyph)
((error)) 6 push-mark t w3-find-specific-link device-type tty w3-fixup-eol-faces message
"Drawing... done" source st nd w3-graphics-list w3-running-xemacs] 3)
w3-region(2475 25830)
byte-code("..." [buffer-read-only buffer-size charset layout start end nil
vm-mime-get-parameter "charset" "us-ascii" message "Inlining
text/html, be patient..." vm-mime-insert-mime-body point-marker
vm-mime-transfer-decode-region vm-mime-charset-decode-region insert-before-markers
"z" w3-region delete-char -1 t remove-text-properties (read-only nil)
"Inlining text/html... done" inhibit-read-only] 5)
vm-mime-display-internal-text/html([("text/html"
"charset=iso-8859-1") ("text/html"
"charset=\"iso-8859-1\"") "quoted-printable" nil nil nil nil
#<marker at 4639851 in xemacs 0xca6bac> #<marker at 4639942 in xemacs
0xca6bc4> #<marker at 4639943 in xemacs 0xca6c84> #<marker at 4664548 in
xemacs 0xca6c6c> nil nil <<m>> "Inline HTML display failed:
(wrong-type-argument char-or-string-p 8211)"])
byte-code("..." [layout type intern "vm-mime-display-internal-"] 3)
vm-decode-mime-layout([("text/html" "charset=iso-8859-1")
("text/html" "charset=\"iso-8859-1\"")
"quoted-printable" nil nil nil nil #<marker at 4639851 in xemacs 0xca6bac>
#<marker at 4639942 in xemacs 0xca6bc4> #<marker at 4639943 in xemacs
0xca6c84> #<marker at 4664548 in xemacs 0xca6c6c> nil nil <<m>>
"Inline HTML display failed: (wrong-type-argument char-or-string-p 8211)"])
vm-mime-display-internal-multipart/alternative([("multipart/alternative"
"boundary=----=_NextPart_000_0017_01C11AA3.71D0DF30")
("multipart/alternative"
"boundary=\"----=_NextPart_000_0017_01C11AA3.71D0DF30\"")
"7bit" nil nil nil nil #<marker at 4631790 in xemacs 0xca696c> #<marker
at 4633807 in xemacs 0xca6984> #<marker at 4633808 in xemacs 0xca6a74>
#<marker at 4664595 in xemacs 0xca6a5c> ([... ... "8bit" nil nil nil nil
#<marker at 4633898 in xemacs 0xca6abc> #<marker at 4633978 in xemacs
0xca6ad4> #<marker at 4633979 in xemacs 0xca6b94> #<marker at 4639806 in
xemacs 0xca6b7c> nil nil <<m>> nil] [... ... "quoted-printable"
nil nil nil nil #<marker at 4639851 in xemacs 0xca6bac> #<marker at 4639942 in
xemacs 0xca6bc4> #<marker at 4639943 in xemacs 0xca6c84> #<marker at 4664548
in xemacs 0xca6c6c> nil nil <<m>> "Inline HTML display failed:
(wrong-type-argument char-or-string-p 8211)"]) nil <<m>> nil])
byte-code("..." [layout type intern "vm-mime-display-internal-"] 3)
vm-decode-mime-layout([("multipart/alternative"
"boundary=----=_NextPart_000_0017_01C11AA3.71D0DF30")
("multipart/alternative"
"boundary=\"----=_NextPart_000_0017_01C11AA3.71D0DF30\"")
"7bit" nil nil nil nil #<marker at 4631790 in xemacs 0xca696c> #<marker
at 4633807 in xemacs 0xca6984> #<marker at 4633808 in xemacs 0xca6a74>
#<marker at 4664595 in xemacs 0xca6a5c> ([... ... "8bit" nil nil nil nil
#<marker at 4633898 in xemacs 0xca6abc> #<marker at 4633978 in xemacs
0xca6ad4> #<marker at 4633979 in xemacs 0xca6b94> #<marker at 4639806 in
xemacs 0xca6b7c> nil nil <<m>> nil] [... ... "quoted-printable"
nil nil nil nil #<marker at 4639851 in xemacs 0xca6bac> #<marker at 4639942 in
xemacs 0xca6bc4> #<marker at 4639943 in xemacs 0xca6c84> #<marker at 4664548
in xemacs 0xca6c6c> nil nil <<m>> "Inline HTML display failed:
(wrong-type-argument char-or-string-p 8211)"]) nil <<m>> nil])
vm-decode-mime-message()
vm-show-current-message()
vm-preview-current-message()
vm-follow-summary-cursor()
(cond (current-prefix-arg (prefix-numeric-value current-prefix-arg))
((vm-follow-summary-cursor) nil) ((vm-follow-folders-summary-cursor) nil) (t (let ...
...)))
)
(list (cond (current-prefix-arg ...) (... nil) (... nil) (t ...)))
)
call-interactively(vm-goto-message)
======================================================================
Kyle> I'm thinking that I should have VM enforce the iso-8859-1 encoding
Kyle> space by stripping the high bit off characters from 0200-0240.
So that'd take care of this before it gets shipped off to W3 for display?
Cool.
BTW - is there any way to do what I mentioned in one of the other notes I
sent, a way to say "if multipart/alternative perfer text/plain over
text/html"?
Thanks,
Chuck
--
Charles K. Hines <ckh(a)requesttech.com> <hines(a)gderome.com>
Principal Scientist at ReQuest Technologies Inc (
http://www.ReQuestTech.com/)
Martial Arts Instructor [Modern Arnis and Balintawak Escrima]
"Go back to sleep, Chuck. You're just havin' a nightmare
-- of course, we ARE still in Hell." (Gary Larson)