j2d - translating Java to D with the language machine - progress
Walter Bright
newshound at digitalmars.com
Sat Apr 1 23:57:46 PST 2006
Peri Hankey wrote:
> It looks now as if the 'invalid UTF character' message is a problem with
> the gdc/dmd front end in the version (gdc 0.17/dmd140) that I am using.
> Is this fixed in later versions of dmd? How else would a java string
>
> '\uffff'
>
> be translated as initialising a D language wchar variable? The following
>
> wchar x = '\uffff';
>
> is flagged as invalid.
That's because \uFFFF is an invalid UTF sequence. You can try instead:
wchar x = cast(wchar)0xFFFF;
More information about the Digitalmars-d
mailing list