summaryrefslogtreecommitdiffstats
path: root/charset.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-24 17:04:45 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-24 17:04:45 +0000
commit45eb8193b7c840d5560c9d6f49ad7dc1454051c2 (patch)
tree887613adb42bfa27c3693ed2266f2be2088c31ff /charset.h
parent38a9f98fcb4765642a0103aca6004ce2d63b8236 (diff)
[patch-0.94.7i.gt.charset-send.1.gz] With the new charset support in
mutt there are better chances to say whether a mail to send consists of characters of the ASCII set only (the charset should be "us-ascii" then) or of other characters from the given charset (this charset should be given then): ASCII characters have the unicode values from 0 to 127.
Diffstat (limited to 'charset.h')
-rw-r--r--charset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/charset.h b/charset.h
index 5bb19860..6120a2c6 100644
--- a/charset.h
+++ b/charset.h
@@ -31,6 +31,8 @@ typedef struct
}
CHARSET;
+#define mutt_unicode_char(cm,ch) (!cm ? -1 : (*cm)[ch])
+
CHARSET *mutt_get_charset(const char *);
CHARSET_MAP *mutt_get_translation(const char *, const char *);