Unicode mangling (was Re: [PATCH] Java: New C++ ABI compatibility changes.)

Tom Tromey tromey@redhat.com
Mon Jan 22 09:40:00 GMT 2001


Gavin> Also, while I'm talking, I'll venture into an area I'm less
Gavin> confident about. It seems to me we can't use UTF8 as an
Gavin> encoding from gcc to the assembler unless the assembler allows
Gavin> any 8bit character in identifiers (which seems unlikely).
We actually only need a weaker constraint, namely that the assembler
will allow any byte with the 8th bit set. Maybe that is what you
meant -- it is unclear to me.
The way UTF-8 is designed, ordinary ascii (8th bit clear) bytes always
represent themselves (as characters). A multi-byte character will
never include a byte with the 8th bit clear. So you don't have to
worry about the assembler seeing 0円 or anything like that.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /