diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-07 14:47:04 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-07 14:47:04 +0300 |
commit | 4fe47925e890ad37d75e4ad5fa75d68a48419176 (patch) | |
tree | 7bc79722eccbe100136ffda392fe69a43bcd1e35 /mail/escape.c | |
parent | 56d50498700d28bb7bf3bab5e23973d29669e101 (diff) | |
download | mailutils-4fe47925e890ad37d75e4ad5fa75d68a48419176.tar.gz mailutils-4fe47925e890ad37d75e4ad5fa75d68a48419176.tar.bz2 |
Introduce locale-independent character type and string functions.
* include/mailutils/cctype.h: New file.
* include/mailutils/cstr.h: New file.
* include/mailutils/Makefile.am: Add new files.
* mailbox/cstrcasecmp.c: New file.
* mailbox/cstrlower.c: New file.
* mailbox/cstrupper.c: New file.
* mailbox/muctype.c: New file.
* mailbox/strltrim.c: New file.
* mailbox/strrtrim.c: New file.
* mailbox/strskip.c: New file.
* mailbox/Makefile.am: Add new files.
* .gitignore: Update
* gnulib.modules: Remove strcase.
* comsat/comsat.h, imap4d/imap4d.h, include/mailutils/mailutils.h,
include/mailutils/mutil.h, include/mailutils/sys/pop3.h,
libmu_scm/mu_scm.h, mail/mail.h: Include cstr.h and cctype.h.
* comsat/oldcfg.c, config/mailutils-config.c,
examples/mimetest.c, examples/mta.c, examples/nntpclient.c,
examples/pop3client.c, imap4d/append.c, imap4d/create.c,
imap4d/delete.c, imap4d/fetch.c, imap4d/id.c,
imap4d/idle.c, imap4d/list.c, imap4d/namespace.c,
imap4d/rename.c, imap4d/search.c, imap4d/status.c,
imap4d/store.c, imap4d/uid.c, imap4d/util.c,
libmu_argp/compat.c, libmu_auth/ldap.c,
libmu_auth/sql.c, libmu_scm/mu_message.c,
libmu_sieve/actions.c, libmu_sieve/comparator.c,
libmu_sieve/extensions/list.c, libmu_sieve/extensions/spamd.c,
libmu_sieve/extensions/vacation.c, libmu_sieve/load.c,
libmu_sieve/sieve.l, libmu_sieve/tests.c,
libproto/imap/folder.c, libproto/mailer/smtp.c,
libproto/mbox/mbox.c, libproto/mh/folder.c,
libproto/mh/mbox.c, libproto/pop/folder.c,
libproto/pop/mbox.c, libproto/pop/pop3_connect.c,
maidag/forward.c, maidag/lmtp.c, maidag/maidag.c,
maidag/maidag.h, maidag/mailquota.c, mail/alt.c,
mail/copy.c, mail/decode.c, mail/escape.c,
mail/followup.c, mail/mail.c, mail/mailline.c,
mail/msgset.y, mail/print.c, mail/reply.c,
mail/send.c, mail/shell.c, mail/util.c,
mail/write.c, mailbox/address.c,
mailbox/amd.c, mailbox/assoc.c,
mailbox/attachment.c, mailbox/attribute.c,
mailbox/cfg_lexer.l, mailbox/date.c,
mailbox/filter.c, mailbox/gdebug.c,
mailbox/header.c, mailbox/kwd.c,
mailbox/locale.c, mailbox/mailcap.c,
mailbox/mailer.c, mailbox/message.c,
mailbox/message_stream.c, mailbox/mime.c,
mailbox/msrv.c, mailbox/mutil.c,
mailbox/parse822.c, mailbox/progmailer.c,
mailbox/rfc2047.c, mailbox/syslog.c, mailbox/url.c,
mailbox/version.c, mh/mh.h, mh/mh_alias.l,
mh/mh_ctx.c, mh/mh_fmtgram.y, mh/mh_init.c,
mh/mh_list.c, mh/mh_msgset.c, mh/mh_sequence.c,
mh/mh_whatnow.c, mh/mh_whom.c, mh/mhn.c,
mh/mhparam.c, mh/pick.y, mh/sortm.c,
mimeview/mimetypes.y, pop3d/bulletin.c,
pop3d/expire.c, pop3d/pop3d.c, pop3d/pop3d.h,
pop3d/popauth.c, pop3d/user.c, readmsg/msglist.c,
readmsg/readmsg.c, readmsg/readmsg.h, sql/mysql.c,
sql/postgres.c: Use locale-independent cclass and str functions.
Diffstat (limited to 'mail/escape.c')
-rw-r--r-- | mail/escape.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/escape.c b/mail/escape.c index 7733ec513..a95528a3d 100644 --- a/mail/escape.c +++ b/mail/escape.c @@ -1,6 +1,6 @@ /* GNU Mailutils -- a suite of utilities for electronic mail Copyright (C) 1999, 2001, 2002, 2005, 2006, - 2007 Free Software Foundation, Inc. + 2007, 2009 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -72,7 +72,7 @@ parse_headers (FILE *fp, compose_env_t *env) switch (state) { case STATE_INIT: - if (!buf[0] || isspace (buf[0])) + if (!buf[0] || mu_isspace (buf[0])) continue; else state = STATE_READ; @@ -81,7 +81,7 @@ parse_headers (FILE *fp, compose_env_t *env) case STATE_READ: if (buf[0] == 0) state = STATE_BODY; - else if (isspace (buf[0])) + else if (mu_isspace (buf[0])) { /* A continuation line */ if (name) @@ -112,7 +112,7 @@ parse_headers (FILE *fp, compose_env_t *env) if (p) { *p++ = 0; - while (*p && isspace (*p)) + while (*p && mu_isspace (*p)) p++; value = strdup (p); name = strdup (buf); @@ -234,11 +234,11 @@ escape_sign (int argc MU_ARG_UNUSED, char **argv, compose_env_t *env MU_ARG_UNUS { char *p; - if (util_getenv (&p, isupper (argv[0][0]) ? "Sign" : "sign", + if (util_getenv (&p, mu_isupper (argv[0][0]) ? "Sign" : "sign", Mail_env_string, 1) == 0) { fputs ("-- \n", ofile); - if (isupper (argv[0][0])) + if (mu_isupper (argv[0][0])) { char *name = util_fullpath (p); FILE *fp = fopen (name, "r"); @@ -509,7 +509,7 @@ quote0 (msgset_t *mspec, mu_message_t mesg, void *data) int escape_quote (int argc, char **argv, compose_env_t *env) { - int lower = islower (argv[0][0]); + int lower = mu_islower (argv[0][0]); util_foreach_msg (argc, argv, MSG_NODELETED|MSG_SILENT, quote0, &lower); escape_continue (); return 0; |