Package: mailutils Version: 1:0.6.1-4sarge2 Severity: normal Tags: l10n
When I ran 'frm' from the command line, I got an immediate segmentation violation. I pulled the source down & compiled it, then ran it w/ gdb - the crash was in common.c:366 ....snip.... static char * rfc2047_decode_wrapper (char *buf, size_t buflen) { int rc; char *tmp; const char *charset = get_charset (); if (strcmp (charset, "ASCII") == 0) <---------- line 366 return strdup (buf); rc = rfc2047_decode (charset, buf, &tmp); if (rc) { if (frm_debug) mu_error (_("Cannot decode line `%s': %s"), buf, mu_strerror (rc)); return strdup (buf); } return tmp; } ....snip.... In my case, the variable charset was optimized out of the default compile. I traced it back thru get_charset() anyway.... ....snip.... const char * get_charset () { char *tmp; if (!output_charset) { char locale[32]; memset (locale, 0, sizeof (locale)); /* Try to deduce the charset from LC_ALL or LANG variables */ tmp = getenv ("LC_ALL"); if (!tmp) tmp = getenv ("LANG"); if (tmp) { char *sp = NULL; char *lang; char *terr; strncpy (locale, tmp, sizeof (locale) - 1); lang = strtok_r (locale, "_", &sp); terr = strtok_r (NULL, ".", &sp); output_charset = strtok_r (NULL, "@", &sp); if (output_charset) output_charset = xstrdup (output_charset); else output_charset = mu_charset_lookup (lang, terr); if (!output_charset) <--------this one-------- output_charset = "ASCII"; } } return output_charset; } ....snip.... Yup, if LC_ALL or LANG is not set at all, then NULL is returned. Fix should be simple - move the if (!output_charset) output_charset = "ASCII"; step outside of the if (tmp) braces. later! horkan p.s. This is my first debian bug report, so please let me know if I messed it up somehow.... -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.28ghs1 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages mailutils depends on: ii guile-1.6-libs 1.6.7-1 Main Guile libraries ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libcomerr2 1.37-2sarge1 common error description library ii libgcrypt11 1.2.0-11.1 LGPL Crypto library - runtime libr ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime ii libgnutls11 1.0.16-13.1 GNU TLS library - runtime library ii libgpg-error0 1.0-1 library for common error values an ii libgsasl7 0.2.5-1 GNU SASL library ii libguile-ltdl-1 1.6.7-1 Guile's patched version of libtool ii libidn11 0.5.13-1.0 GNU libidn library, implementation ii libkrb53 1.3.6-2sarge2 MIT Kerberos runtime libraries ii libmailutils0 1:0.6.1-4sarge2 GNU Mail abstraction library ii libmysqlclient12 4.0.24-10sarge1 mysql database client library ii libncurses5 5.4-4 Shared libraries for terminal hand ii libpam0g 0.76-22 Pluggable Authentication Modules l ii libqthreads-12 1.6.7-1 QuickThreads library for Guile ii libreadline5 5.0-10 GNU readline and history libraries ii libtasn1-2 0.2.10-3 Manage ASN.1 structures (runtime) ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]