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: Jeff Kingston
Subject: Re: prg2lout and 8-bit characters
Date: Thu, 31 Jan 2002 13:24:32 +1100

On Tue, 22 Jan 2002 23:51:23 +0100, Michael Piotrowski wrote:
  > 
  > Hi,
  > 
  > 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.
  > 
  > In actual operation, however, I'm getting messages like
  > 
  >   skipping unprintable character, octal code 37777777744
  >   (not allowed in ""-string)
  > 
  > and the character disappears from the output.
  > 
  > Just for testing I changed AllCharacters to AllPrintable in
  > PerlDoubleQuoteStringToken, and added an 8-bit character to its
  > definition: *Now* this character is recognized and output.
  > 
  > Could this be a bug somewhere in the handling of AllCharacters? Any
  > ideas?
  > 
  > Thanks and greetings
  > 
  > -- 
  > Michael Piotrowski, M.A.                                  <address@hidden>

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.

Jeff Kingston





reply via email to

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