File: bug14.txt

package info (click to toggle)
jlex 1.2.6-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: java: 5,554; sh: 8; makefile: 5
file content (34 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From Torsten.Hilbrich@bln.de Sun Jul 25 07:54:07 1999
Date: 11 Dec 1997 23:31:02 +0100
From: Torsten Hilbrich <Torsten.Hilbrich@bln.de>
To: appel@princeton.edu
Subject: JLex 1.2.2: Problems with 8bit characters still laying around

I previously had 1.1.1 installed and got strange errors with some HTML
files that I parsed.  After looking at the home page I recognized that
these were problems with 8bit characters (such as german umlauts) and
are supposed to be fixed in 1.2.1.  However, I just installed 1.2.2
and the error is still there.  If I compile the example file and run
it using a simple token printer, I get the following message if
entering a character > 127:

  java.lang.ArrayIndexOutOfBoundsException: 
          at Yylex.yylex(html.lex.java:416)
          at TestLex.main(TestLex.java:6)

The code just around line 416 is the following:

                        if (YYEOF != yy_lookahead) {
                                yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]];
                        }


Thanks for your reply,

        Torsten

-- 
I haven't lost my mind -- it's backed up on tape somewhere.
                                            Fortune Cookie
PGP Public key available