Newsgroups: comp.lang.forth
From: Alex McDonald <b...@rivadpm.com>
Date: Mon, 16 Jul 2007 05:39:13 -0700
Local: Mon, Jul 16 2007 8:39 am
Subject: Re: RfD: XCHAR wordset
On Jul 16, 12:28 pm, an...@mips.complang.tuwien.ac.at (Anton Ertl)
wrote: > Alex McDonald <b...@rivadpm.com> writes: The au would be 16bits, with a max of 127 characters in a counted > >Bernd Paysan wrote: > >[snipped] > >Unfortunately, on first analysis, this is one proposal that Win32Forth > >Windows is UTF-16, which is not ASCII compliant. Although Windows > I don't see that you are any worse off with xchars in this situation string. This might be considered too short. It would be a pretty big change as well, as there are a good few COUNTs and C@ in a lot of Win32Forth code. I didn't see an X-STRING-SIZE (a poor name, I know) in Bernd's As a general note, it's worth following the Unicode 5.0 standard for > >We would need something like the proposal Anton made at EuroForth 2006 > For strings my approach in the C interface is that one needs to 0x80. It has some advantages, as C won't stop on it when using strlen(), and strings with imbedded nulls can be correctly passed to C (for instance, when using C to write to file). Win32Forth makes sure strings are null terminated (and the programmer > - anton You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||