Mailing List Archive

some explanations
i was too busy this morning..........


The problem occurs when accentuated characters are present in
the headers (in some name in french for example):

From: "BM-inM-idicte RECOURA" <b.recoura@free.fr>

if the strlower function use a (char *) an accentuated char could be
outside of the range of the tolower function (with HPUX:
toupper() and tolower() have as domain the range of getc(3S): the integers from -1
through 255) because of the prototype of tolower:
int tolower(int c);

So a (char *) 0xe9 became a 0xffffffe9 int :(
and in this case tolower return 0 (end of string => stop parsing next
headers - too bad).
Re: some explanations [ In reply to ]
> toupper() and tolower() have as domain the range of getc(3S): the
> integers from -1 through 255) because of the prototype of tolower:
> int tolower(int c);

Ah right. I understand the problem.

Did you say you have a fixed version there ?


--
Paul L Daniels http://www.pldaniels.com
Linux/Unix systems Internet Development
ICQ#103642862,AOL:cinflex,IRC:inflex
A.B.N. 19 500 721 806