bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of @encode(char) not portable.


From: Adam Fedor
Subject: Use of @encode(char) not portable.
Date: Sun, 06 May 2001 21:29:10 -0600

I've encountered a bug in the coding functions of the base library
(perhaps others). @encode(char) is used in several places, but this is
not portable. @encode(char) returns an unsigned char (_C_UCHR) on some
machines and signed (_C_CHR) on others. It's easy to change all
occurances to @encode(unsigned char), but I'm not sure how many people
this will mess up. I'm not sure if it's worth the trouble though to
create a new encoding version in every class it's needed.

The other choice is to make the decoder a tad more forgiving...


-- 
Adam Fedor, Digital Optics            | Fudd's law of opposition: Push
fedor@doc.com  http://www.doc.com     | something hard enough, and it 
fedor@gnu.org  http://www.gnustep.org | will fall over.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]