==============MESSAGE BODY==============
================================================================
Dear Bug Team!
When using "VM" to view HTML-formatted email sent by people using MS
Outlook, I get MIME translation errors. The MS Exchange Server
formats the HTML with entities like "’" which w3 (as invoked by
VM to display the html) does not know how to display. Not knowing how
to display garbage like that is fine IMHO, but it should (and tries
to) choose a reasonable fallback but it fails instead.
The error code received is:
(wrong-type-argument char-or-string-p 8217)
SOLUTION:
The mule-make-iso-character function in mule-sysdp.el (from the w3
package in /usr/lib/xemacs/xemacs-packages/lisp/w3) erroneously
returns the input *integer* value if it cannot determine a valid
translation for the character entity value. The result is passed to
char-to-string which apparently cannot take an integer > 127 as input.
The fix is:
(defun mule-make-iso-character (char)
(if (<= char 127)
char
(case mule-sysdep-version
(2.3 (make-character lc-ltn1 char))
(2.4 (make-char charset-latin-iso8859-1 char))
(3.0 (make-char 'latin-iso8859-1 char))
((4.0 4.1) (if default-enable-multibyte-characters
(make-char 'latin-iso8859-1 char)
(format "<<%d>>" char)))
(xemacs (format "<<%d>>" char))
(otherwise (format "<<%d>>" char)))))
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
kquick.surgient.com 2.4.19-gentoo-r10 #6 Wed Jan 15 16:48:47 CST 2003 i686
Pentium III (Coppermine) GenuineIntel GNU/Linux
./configure '--with-widgets=motif' '--with-dialogs=motif'
'--with-scrollbars=motif' '--with-menubars=lucid' '--with-gif=no'
'--without-tiff' '--with-jpeg' '--without-xface'
'--with-gpm' '--without-postgresql' '--with-sound=native'
'--prefix=/usr' '--with-pop' '--with-ncurses'
'--with-msw=no' '--mail-locking=flock' '--with-database=gnudbm'
'--pdump' '--with-site-lisp=yes'
XEmacs 21.4.10 "Military Intelligence" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location:
/var/tmp/portage/xemacs-21.4.10-r1/work/xemacs-21.4.10
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -mcpu=i686 -pipe
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Motif scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Internationalization:
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "flock" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Load-Path Lisp Shadows:
----------------------
nil
Installed XEmacs Packages:
-------------------------
((xslt-process:version 1.11 :type regular)
(xslide :version 1.04 :type regular)
(xemacs-devel :version 1.5 :type single-file)
(xemacs-base :version 1.75 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 7.07 :type regular)
(view-process :version 1.12 :type regular)
(vc :version 1.35 :type regular)
(textools :version 1.14 :type regular)
(text-modes :version 1.58 :type single-file)
(texinfo :version 1.23 :type regular)
(supercite :version 1.19 :type regular)
(speedbar :version 1.26 :type regular)
(sml-mode :version 0.07000000000000001 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.11 :type regular)
(sh-script :version 1.17 :type regular)
(sgml :version 1.08 :type regular)
(scheme :version 1.13 :type regular)
(ruby-modes :version 1.01 :type regular)
(reftex :version 1.28 :type regular)
(python-modes :version 1.02 :type single-file)
(psgml :version 1.38 :type regular)
(ps-print :version 1.08 :type regular)
(prog-modes
:version
1
.72
:type
single-file)
(pgg :version 1.02 :type regular)
(perl-modes :version 1.04 :type single-file)
(pcomplete :version 1.02 :type regular)
(pcl-cvs :version 1.64 :type regular)
(os-utils :version 1.3 :type single-file)
(ocaml :version 0.04 :type regular)
(net-utils :version 1.31 :type single-file)
(mmm-mode :version 1.0 :type regular)
(mailcrypt :version 2.12 :type regular)
(mail-lib :version 1.56 :type regular)
(jde :version 1.43 :type regular)
(igrep :version 1.1 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.18 :type regular)
(haskell-mode :version 1.05 :type regular)
(frame-icon :version 1.09 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.37 :type regular)
(ess :version 1.03 :type regular)
(eshell :version 1.04 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(efs :version 1.29 :type regular)
(edit-utils :version 1.98 :type single-file)
(ediff :version 1.46 :type regular)
(ecrypto :version 0.12 :type regular)
(docbookide :version 0.06 :type regular)
(dired :version 1.13 :type regular)
(debug :version 1.16 :type regular)
(cc-mode :version 1.32 :type regular)
(calendar :version 1.19 :type regular)
(c-support :version 1.16 :type single-file)
(bbdb :version 1.21 :type regular)
(auctex :version 1.33 :type regular))
Installed Modules:
-----------------
Features:
--------
(xemacsbug shadow view-less view hyper-apropos font-lock dired-faces
dired-xemacs dired vm-undo vm-virtual vm-crypto vm-minibuf vm-pop
w3-hot url-file url-cache w3-xemac w3-xemacs w3-toolbar xbm-button
xpm-button w3-forms images url-http url-cookie urlauth w3 w3-menu
url-news url-gw w3-script w3-jscript w3-elisp w3-java cus-edit
cus-load w3-emulate w3-auto w3-parse url mm url-vars w3-cfg w3-sysdp
w3-display w3-mouse advice advice-preload w3-imap w3-vars wid-edit
w3-cus mule-sysdp w3-widget url-parse css font disp-table w3-keyword
bbdb-gui bbdb-hooks vm-page vm-mime vm-message vm-save vm-toolbar
vm-motion vm-summary tapestry vm-menu vm-folder efs-cu vm-misc
vm-mouse vm-window bbdb-vm bbdb-snarf mail-extr bbdb-com mail-abbrevs
sendmail rfc822 paren blink-paren compile tex-site vm-autoload
highlight-headers vm-vars vm-startup vm-version vm bbdb timezone
hideshow speedbar cus-face sb-image dframe assoc ediff-hook vc-hooks
filladapt func-menu xslt-process-autoloads xslide-autoloads
xemacs-devel-autoloads xemacs-base-autoloads w3-autoloads vm-autoloads
view-process-autoloads vc-autoloads textools-autoloads
text-modes-autoloads texinfo-autoloads supercite-autoloads
speedbar-autoloads sml-mode-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads scheme-autoloads
ruby-modes-autoloads reftex-autoloads python-modes-autoloads
psgml-autoloads ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
os-utils-autoloads ocaml-autoloads net-utils-autoloads
mmm-mode-autoloads mailcrypt-autoloads mail-lib-autoloads
jde-autoloads igrep-autoloads ibuffer-autoloads
hm--html-menus-autoloads haskell-mode-autoloads frame-icon-autoloads
footnote-autoloads eudc-autoloads ess-autoloads eshell-autoloads
emerge-autoloads elib-autoloads efs-autoloads edit-utils-autoloads
ediff-autoloads ecrypto-autoloads docbookide-autoloads dired-autoloads
debug-autoloads cc-mode-autoloads calendar-autoloads
c-support-autoloads bbdb-autoloads auctex-autoloads lisp-autoloads
loadhist auto-show fontl-hooks x-iso8859-1 gutter-items menubar-items
x-menubar mode-motion mouse itimer auto-save lisp-mode easymenu
iso8859-1 page buff-menu lib-complete help-nomule cus-file derived
frame text-props obsolete cus-start custom widget cl-extra mini-cl cl
cl-19 packages backquote very-early-lisp motif-scrollbars cut-buffer
lucid-menubars motif-dialogs x c-balloon-help tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar dbm md5 xemacs
gutter png jpeg xpm xbm lisp-float-type linux dialog devices
window-system base64)
Recent keystrokes:
-----------------
C-p C-e M-b ( C-x C-w / t m p / m u l e - s y s d p
. e l RET ( f o r m a t SPC " < < % d > > " SPC C-e
) C-n M-b ( f o r m a t SPC " < < % d > > " SPC C-e
) C-n M-b ( f o r m a t SPC " < < % d > > " SPC C-e
) C-x C-e D D D C-x C-s C-x 1 C-x 2 M-< g misc-use
r
Recent messages (most recent first):
-----------------------------------
Parsing /home/kquick/.mailrc...
Loading xemacsbug...done
Loading xemacsbug...
No new mail for /home/kquick/mail/Inboxes/SurgientINBOX
Checking for new mail for /home/kquick/mail/Inboxes/SurgientINBOX...
Wrote /tmp/mule-sysdp.el
Decoding MIME message... done
Inlining text/html... done
Drawing... done
Drawing... \
Drawing... /
Parsed 100% of 34526...done
Parsed 96% of 34526...
Parsed 89% of 34526...
Parsed 87% of 34526...
Parsed 85% of 34526...
Parsed 83% of 34526...
Parsed 81% of 34526...
Parsed 79% of 34526...
Parsed 77% of 34526...
--
________________________________________________________________________
Kevin Quick Surgient Networks Project UDI
kevin.quick(a)surgient.com Austin, Texas Editor
+1 512 241 4801
www.surgient.com www.projectudi.org