3 Jul 2008 12:09
Re: character set conversion
Gunnar Ritter <gunnarr <at> acm.org> writes:
> so I've implemented that and not escaping here too. The only
> difference is that I don't do it in interactive mode, as we agreed
> previously.
I still get the old behavior.
$ echo äöü | LANG=C ./mailx hbengen
Invalid or incomplete multibyte or wide character
"/home/hbengen/dead.letter" 1/7
. . . message not sent.
It looks as if you introduced a typo in your changes to sendout.c:
> <at> <at> -1001,10 +1040,21 <at> <at> try: if ((nmtf = infix(hp, mtf, dosign)) == NULL) {
> hp->h_charset = NULL;
> goto hloop;
> }
> - if (ncs && *ncs && (errno == EILSEQ || errno == EINVAL)) {
> - rewind(mtf);
> - wantcharset = ncs;
> - goto loop;
> + if (errno == EILSEQ || errno == EINVAL) {
> + if (ncs && *ncs) {
> + rewind(mtf);
> + wantcharset = ncs;
> + goto loop;
> + }
> + if (wantcharset && value("interactive") != NULL) {
(Continue reading)
RSS Feed