Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ripMIME: general

some explanations

 

 

ripMIME general RSS feed   Index | Next | Previous | View Threaded


manu at univ-lr

Nov 6, 2002, 6:50 AM

Post #1 of 2 (1380 views)
Permalink
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 [at] free>

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).


pldaniels at pldaniels

Nov 6, 2002, 6:50 AM

Post #2 of 2 (1338 views)
Permalink
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

ripMIME general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.