Support for multibyte-encoding in MH.
* gnulib.modules (mbchar, mbiter, mbslen): New modules. * mh/mh.h (mh_charset): New function. * mh/mh_format.c (DFLWIDTH): New macro. (mbsubstrlen, mbsnlen): New functions. (compress_ws): Handle multibyte strings. (put_string): Use number of characters, not octets, to update ind. (print_hdr_segment): Handle multibyte strings. (print_simple_segment, print_fmt_string): Likewise. (reset_fmt_defaults): Restore default WS compression. (mh_format): Set LC_TYPE based on the settings of profile variables Charset and LC_BASE (new variable). * mh/mh_init.c (mh_charset): New function. (mh_decode_2047): Use mh_charset.
Showing
4 changed files
with
157 additions
and
61 deletions
-
Please register or sign in to post a comment