+2006-03-26 [colin] 2.0.0cvs172
+
+ * src/procheader.c
+ Make sure the date is UTF8 valid, or try to make it
+ so. IncrediMail is really IncrediStupid.
+ * src/compose.c
+ Fix possible conversions.
+
+
2006-03-26 [colin] 2.0.0cvs171
* src/matcher.c
( cvs diff -u -r 1.75.2.17 -r 1.75.2.18 src/matcher.c; cvs diff -u -r 1.3.2.5 -r 1.3.2.6 src/common/quoted-printable.c; cvs diff -u -r 1.3.2.2 -r 1.3.2.3 src/common/quoted-printable.h; ) > 2.0.0cvs169.patchset
( cvs diff -u -r 1.395.2.187 -r 1.395.2.188 src/summaryview.c; ) > 2.0.0cvs170.patchset
( cvs diff -u -r 1.75.2.18 -r 1.75.2.19 src/matcher.c; ) > 2.0.0cvs171.patchset
+( cvs diff -u -r 1.47.2.27 -r 1.47.2.28 src/procheader.c; cvs diff -u -r 1.382.2.255 -r 1.382.2.256 src/compose.c; ) > 2.0.0cvs172.patchset
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=171
+EXTRA_VERSION=172
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
} else {
gchar *tmpout = NULL;
tmpout = conv_codeset_strdup
- (buf, conv_get_locale_charset_str(),
+ (buf, conv_get_locale_charset_str_no_utf8(),
CS_INTERNAL);
if (!tmpout || !g_utf8_validate(tmpout, -1, NULL)) {
g_free(tmpout);
utf8_sig_str = sig_str;
else {
utf8_sig_str = conv_codeset_strdup
- (sig_str, conv_get_locale_charset_str(),
+ (sig_str, conv_get_locale_charset_str_no_utf8(),
CS_INTERNAL);
g_free(sig_str);
}
if (msginfo->date) break;
msginfo->date_t =
procheader_date_parse(NULL, hp, 0);
- msginfo->date = g_strdup(hp);
+ if (g_utf8_validate(hp, -1, NULL)) {
+ msginfo->date = g_strdup(hp);
+ } else {
+ gchar *utf = conv_codeset_strdup(
+ hp,
+ conv_get_locale_charset_str_no_utf8(),
+ CS_INTERNAL);
+ if (utf == NULL ||
+ !g_utf8_validate(utf, -1, NULL)) {
+ g_free(utf);
+ utf = g_malloc(strlen(buf)*2+1);
+ conv_localetodisp(utf,
+ strlen(hp)*2+1, hp);
+ }
+ msginfo->date = utf;
+ }
break;
case H_FROM:
if (msginfo->from) break;