+2005-04-17 Changwoo Ryu <cwryu@debian.org>
+
+ ** See bug #300891
+
+ * Makefile.am (INCLUDES): define CAMEL_EXPLICIT_TRANSLATION_DOMAIN
+ and EVOLUTION_LOCALEDIR.
+
+ * camel.c (camel_init): initialize gettext with bindtextdomain()
+ and bind_textdomain_codeset().
+
+2005-08-09 Changwoo Ryu <cwryu@debian.org>
+
+ ** See bug #300115.
+
+ * camel-mime-utils.c (rfc2047_encode_word): if the last unicode
+ character in the input string is non-ASCII, it is always encoded
+ as a separated chunk.
+
2005-08-08 Not Zed <NotZed@Ximian.com>
** See bug #312831.
-DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\" \
-DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\" \
-DG_LOG_DOMAIN=\"camel\" \
+ -DCAMEL_EXPLICIT_TRANSLATION_DOMAIN=\"$(GETTEXT_PACKAGE)\" \
+ -DEVOLUTION_LOCALEDIR=\""$(localedir)"\" \
$(CAMEL_CFLAGS)
libcamel_provider_1_2_la_SOURCES = \
/* proclen will be the result of input characters that we can convert, to the nearest
(approximated) valid utf8 char */
convlen = 0;
- proclen = 0;
+ proclen = -1;
p = inptr;
i = 0;
while (p < (in+len) && convlen < (75 - strlen("=?utf-8?q\?\?="))) {
else
convlen += 3;
}
+ if (proclen >= 0 && proclen < i && convlen < (75 - strlen("=?utf-8?q\?\?=")))
+ proclen = i;
/* well, we probably have broken utf8, just copy it anyway what the heck */
- if (proclen == 0) {
+ if (proclen == -1) {
w(g_warning("Appear to have truncated utf8 sequence"));
proclen = inlen;
}
#include "camel.h"
#include "camel-certdb.h"
+#include "camel-i18n.h"
#include "camel-mime-utils.h"
#include "camel-provider.h"
#include "camel-debug.h"
if (initialised)
return 0;
+ bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
camel_debug_init();
/* initialise global camel_object_type */