Re: [1.5.9 bug] Mutt discards the \ character before a digit in "To:"
On 2005-05-26 12:42:04 +0900, TAKAHASHI Tamotsu wrote:
> And I'll try various locale settings.
> I've just remembered that you set LC_CTYPE=en_US.UTF-8.
Not here (since I directly started Mutt from the shell, where I still
use ISO-8859-1). Here's various information:
dixsept:~/software/mutt/mutt> locale
LANG=POSIX
LC_CTYPE=en_US.ISO8859-1
LC_NUMERIC="POSIX"
LC_TIME=en_DK
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
dixsept:~/software/mutt/mutt> ldd ./mutt
libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0xb7f96000)
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0xb7f64000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0xb7e62000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7d2d000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7d2a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)
dixsept:~/software/mutt/mutt> ./mutt -v
Mutt 1.5.9i (2005-03-13)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 2.6.11.10-20050517 (i686) [using ncurses 5.4]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE
+USE_FCNTL -USE_FLOCK -USE_INODESORT
+USE_POP +USE_IMAP -USE_GSS +USE_SSL -USE_GNUTLS -USE_SASL -USE_SASL2
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME
-BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID +HAVE_GETADDRINFO
-USE_HCACHE
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/home/vlefevre/share/mutt"
SYSCONFDIR="/home/vlefevre/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please use the flea(1) utility.
dixsept:~/software/mutt/mutt> ./mutt -F muttrc -f test
Reading test...sh: /home/vlefevre/i686-linux/bin/mutt_dotlock: No such file or
directory
Sorting mailbox...zsh: segmentation fault (core dumped) ./mutt -F muttrc -f
test
dixsept:~/software/mutt/mutt> gdb ./mutt core
[...]
(gdb) bt
#0 0xb7da00dd in mallopt () from /lib/tls/libc.so.6
#1 0xb7d9f8fb in mallopt () from /lib/tls/libc.so.6
#2 0xb7d9f394 in calloc () from /lib/tls/libc.so.6
#3 0xb7deb242 in re_exec () from /lib/tls/libc.so.6
#4 0xb7de9920 in re_exec () from /lib/tls/libc.so.6
#5 0xb7de7e81 in re_exec () from /lib/tls/libc.so.6
#6 0xb7de773a in re_exec () from /lib/tls/libc.so.6
#7 0xb7de6bf1 in regexec () from /lib/tls/libc.so.6
#8 0x0808deeb in match_adrlist (rx=0x812ba90, match_personal=1,
alladdr=135445136, n=2) at pattern.c:903
#9 0x0808e60c in mutt_pattern_exec (pat=0x812ba70, flags=135128912, ctx=0x0,
h=0x81416c0) at pattern.c:1026
#10 0x0806676c in mutt_set_header_color (ctx=0x812bbf8, curhdr=0x81416c0)
at curs_main.c:2130
#11 0x0805ff85 in index_color (index_no=825832704) at curs_main.c:179
#12 0x0807ca1c in menu_redraw_index (menu=0x8141848) at menu.c:238
#13 0x08066491 in mutt_index_menu () at curs_main.c:552
#14 0x08079a90 in main (argc=5, argv=0xbfffef54) at main.c:934
If I use "LC_CTYPE=POSIX LC_TIME=POSIX ./mutt -F muttrc -f test",
I no longer get the crash. But if I omit LC_CTYPE or LC_TIME, then
I still get the crash.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA