/*
- * check_charset.c -- routines for character sets
- *
- * This code is Copyright (c) 2002, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** check_charset.c -- routines for character sets
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#ifdef HAVE_LANGINFO_H
/*
- * Get the current character set
- */
+** Get the current character set
+*/
char *
get_charset ()
{
/*
- * Check if we can display a given character set natively.
- * We are passed the length of the initial part of the
- * string to check, since we want to allow the name of the
- * character set to be a substring of a larger string.
- */
+** Check if we can display a given character set natively.
+** We are passed the length of the initial part of the
+** string to check, since we want to allow the name of the
+** character set to be a substring of a larger string.
+*/
int
check_charset (char *str, int len)
/*
- * Return the name of the character set we are
- * using for 8bit text.
- */
+** Return the name of the character set we are
+** using for 8bit text.
+*/
char *
write_charset_8bit (void)
{
static char *mm_charset = NULL;
/*
- * Cache the name of the character set to
- * use for 8bit text.
- */
+ ** Cache the name of the character set to
+ ** use for 8bit text.
+ */
if (!mm_charset && !(mm_charset = get_charset ()))
mm_charset = "x-unknown";