From: Jens Getreu <getreu@web.de>
Date: Thu, 16 Sep 2021 23:51:39 -0400
Subject: add support for European 8-bit character sets

Bug-Debian: https://bugs.debian.org/229364
Bug-Ubuntu: https://launchpad.net/bugs/626271
Last-Update: 2017-05-10
---
 java2html.l | 2 +-
 mymain.c    | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/java2html.l b/java2html.l
index 25d078b..ef3a90b 100644
--- a/java2html.l
+++ b/java2html.l
@@ -42,7 +42,7 @@ unsigned int oldstate = 0;
 %s DEFINELINE
 %s PREPROLINE
 
-id [a-zA-Z_][a-zA-Z01-9_]*
+id [a-zA-Z_\xa0-\xff][a-zA-Z01-9\xa0-\xff]*
 wsnl [\t \n]*
 ws   [\t ]*
 accessmode ("public"|"private"|"protected")
diff --git a/mymain.c b/mymain.c
index 8413bfd..a774a96 100644
--- a/mymain.c
+++ b/mymain.c
@@ -552,6 +552,7 @@ AddLabelForFunction(FILE *out, char *text)
   while (((('A' <= *start_ptr) && ('Z' >= *start_ptr))
 	  || (('a' <= *start_ptr) && ('z' >= *start_ptr))
 	  || (('0' <= *start_ptr) && ('9' >= *start_ptr))
+	  || (('\xa0' <= *start_ptr) && ('\xff' >= *start_ptr))
 	  || ('_' == *start_ptr))
 	 && (start_ptr != text))
     { start_ptr--; }
@@ -582,6 +583,7 @@ AddLabelForClass(FILE *out, char *text)
   while (((('A' <= *end_ptr) && ('Z' >= *end_ptr))
 	      || (('a' <= *end_ptr) && ('z' >= *end_ptr))
 	  || (('0' <= *end_ptr) && ('9' >= *end_ptr))
+	  || (('\xa0' <= *end_ptr) && ('\xff' >= *end_ptr))
 	  || ('_' == *end_ptr)))
     { end_ptr++; }
   AddLabelTag(out, start_ptr, end_ptr);
@@ -610,6 +612,7 @@ AddLabelForStruct(FILE *out, char *text)
   while (((('A' <= *end_ptr) && ('Z' >= *end_ptr))
 	  || (('a' <= *end_ptr) && ('z' >= *end_ptr))
 	  || (('0' <= *end_ptr) && ('9' >= *end_ptr))
+	  || (('\xa0' <= *end_ptr) && ('\xff' >= *end_ptr))
 	  || ('_' == *end_ptr)))
     { end_ptr++; }
   AddLabelTag(out, start_ptr, end_ptr);
