lout-users
[Top][All Lists]
Advanced

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

Re: prg2lout and 8-bit characters


From: Michael Piotrowski
Subject: Re: prg2lout and 8-bit characters
Date: Sat, 02 Feb 2002 17:31:15 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)

Reimer Behrends <address@hidden> writes:

> On Fri, Feb 01, 2002 at 09:49:09AM +0100, Michael Piotrowski wrote:
> [...]
>> Because I urgently needed umlauts in a program (linguistic processing
>> of German), I just took the brute force approach and replaced all
>> declarations of char with unsigned char.  The compiler complains a
>> lot, probably because the string.h functions expect char (some casts
>> should fix this), but it does work fine now.
>
> Just a quick note: Using "gcc -funsigned-char" is often an easier
> solution to the problem of signed chars wreaking havoc. If you're
> using gcc, that is.

Yes, if one is using gcc, this is a possible solution.  However, not
all compilers provide this option, among them the HP C compiler I'm
using on HP-UX.  So, using unsigned char is more portable.

-- 
Michael Piotrowski, M.A.                                  <address@hidden>


reply via email to

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