svn path=/trunk/; revision=3980
opie.c rpa.c interface.c netrc.c \
unmime.c conf.c checkalias.c smbdes.c smbencrypt.c \
smbmd4.c smbutil.c ipv6-connect.c lock.c \
- rcfile_l.l rcfile_y.y
+ rcfile_l.l rcfile_y.y ucs/norm_charmap.c
check_PROGRAMS= rfc822 unmime netrc rfc2047e
# extra directories to ship
distdirs = rh-config contrib beos
-EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs)
+EXTRA_DIST= $(DISTDOCS) fetchmail.spec $(distdirs) ucs/README.svn
FAQ: fetchmail-FAQ.html
AWK=$(AWK) $(SHELL) $(srcdir)/html2txt.sh $(srcdir)/fetchmail-FAQ.html >$@ || { rm -f $@ ; exit 1 ; }
#endif /* HAVE_SETRLIMIT */
#include <sys/utsname.h>
+#ifdef HAVE_LANGINFO_H
+#include <langinfo.h>
+#endif
+
#include "fetchmail.h"
#include "socket.h"
#include "tunable.h"
lastsig = sig;
}
+char *iana_charset;
+
int main(int argc, char **argv)
{
int bkgd = FALSE;
setlocale (LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ iana_charset = norm_charmap(nl_langinfo(CODESET)); /* normalize local
+ charset to
+ IANA charset. */
+#else
+ iana_charset = "US-ASCII";
#endif
/*
extern char *sdps_envto;
#endif /* SDPS_ENABLE */
+extern char *iana_charset; /* IANA assigned charset name */
+
+/* from ucs/norm_charmap.c */
+const char *norm_charmap(const char *name);
+
/* prototypes for globally callable functions */
/* from /usr/include/sys/cdefs.h */