lex.c (yylex): Encode \0 as UTF8.
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Wed, 10 Feb 1999 15:11:25 +0000 (15:11 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 10 Feb 1999 15:11:25 +0000 (15:11 +0000)
1999-02-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
* lex.c (yylex): Encode \0 as UTF8.

From-SVN: r25137

gcc/java/ChangeLog
gcc/java/lex.c

index 30a137e543c32e25cd5939655c3423a42798f97b..bab7646d187fcc63e60834abc3f08ae7ca2dd40c 100644 (file)
@@ -1,3 +1,7 @@
+1999-02-10  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+       
+       * lex.c (yylex): Encode \0 as UTF8.
+
 1999-02-10  Tom Tromey  <tromey@cygnus.com>
 
        * jvspec.c (lang_specific_driver): Use libgcj, not libjava.
index e376fcfcb4198355f2abf56b2ea7c6ee06378f84..89b3fb2d305466a4fda410825eef86736f491900 100644 (file)
@@ -903,8 +903,7 @@ java_lex (java_lval)
          if (c == '\\')
            c = java_parse_escape_sequence ();
          no_error &= (c != JAVA_CHAR_ERROR ? 1 : 0);
-         if (c)
-           java_unicode_2_utf8 (c);
+         java_unicode_2_utf8 (c);
        }
       if (c == '\n' || c == UEOF) /* ULT */
        {