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
This commit is contained in:
Tom Tromey 1999-02-22 09:15:30 +00:00 committed by Tom Tromey
parent b9ef73ea54
commit a32999346f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-02-20 Tom Tromey <tromey@cygnus.com>
* jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f,
not 0x1f.
Sun Feb 21 14:56:11 1999 Per Bothner <bothner@cygnus.com> Sun Feb 21 14:56:11 1999 Per Bothner <bothner@cygnus.com>
* decl.c (build_result_decl), java-tree.h: New method. * decl.c (build_result_decl), java-tree.h: New method.

View File

@ -241,7 +241,7 @@ extern int jcf_unexpected_eof PROTO ((JCF*, int));
? (((PTR)[-2] & 0x1F) << 6) + ((PTR)[-1] & 0x3F) \ ? (((PTR)[-2] & 0x1F) << 6) + ((PTR)[-1] & 0x3F) \
: (*(PTR) & 0xF0) == 0xE0 && ((PTR) += 3) <= (LIMIT) \ : (*(PTR) & 0xF0) == 0xE0 && ((PTR) += 3) <= (LIMIT) \
&& ((PTR)[-2] & 0xC0) == 0x80 && ((PTR)[-1] & 0xC0) == 0x80 \ && ((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)) : ((PTR)++, -1))
extern char *jcf_write_base_directory; extern char *jcf_write_base_directory;