From a32999346f5fcfda44737f45e93e631d421c608e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 22 Feb 1999 09:15:30 +0000 Subject: [PATCH] jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, not 0x1f. * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, not 0x1f. From-SVN: r25369 --- gcc/java/ChangeLog | 5 +++++ gcc/java/jcf.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b68e62aa152..deecd96ae29 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +1999-02-20 Tom Tromey + + * jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, + not 0x1f. + Sun Feb 21 14:56:11 1999 Per Bothner * decl.c (build_result_decl), java-tree.h: New method. diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index 32f2759e742..4ec1fcd7de4 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -241,7 +241,7 @@ extern int jcf_unexpected_eof PROTO ((JCF*, int)); ? (((PTR)[-2] & 0x1F) << 6) + ((PTR)[-1] & 0x3F) \ : (*(PTR) & 0xF0) == 0xE0 && ((PTR) += 3) <= (LIMIT) \ && ((PTR)[-2] & 0xC0) == 0x80 && ((PTR)[-1] & 0xC0) == 0x80 \ - ? (((PTR)[-3]&0x1F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \ + ? (((PTR)[-3]&0x0F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \ : ((PTR)++, -1)) extern char *jcf_write_base_directory; -- 2.30.2