[Top][All Lists]
[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: |
Thu, 31 Jan 2002 08:49:40 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley) |
Jeff Kingston <address@hidden> writes:
> On Tue, 22 Jan 2002 23:51:23 +0100, Michael Piotrowski wrote:
> >
> > While formatting a document containing program listings (Perl, using
> > Lout 3.25 on HP-UX) I just noticed that prg2lout seems to suppress
> > 8-bit characters in strings (and comments, etc.), although, quickly
> > browsing the source, it seems that they're *intended* to be allowed:
> > PerlDoubleQuoteStringToken specifies AllCharacters, the interpretation
> > of which in SetupOneToken() refers to MAX_CHAR, which is 256.
[...]
> This looks to me like a clear case of a signed char being converted
> to a signed int and causing a negative array index. I'll look into
> it further and try to get it fixed for the next release.
Yes, that seems like a good guess to me. Although I've been bitten by
this bug myself in my own program, I didn't think of it when I posted
the message (also, I had to finish these darn slides quickly).
Thanks
--
Michael Piotrowski, M.A. <address@hidden>