Richard Frith-Macdonald wrote:
[snip]
> ie. lengths of ucs2 strings should be the number of 16-bit unichars in
> the strings, but lengths of
> strings in other encodings should be the number of 8-bit bytes in the
> strings

Yes, this is the only really sensible approach. The code did this, but
the documentation was incorrect (and inconsistent) about it. Anyway,
code and documentation is fixed now, and I fixed all callers in
base/gui/back (fortunately, only one caller was broken; unfortunately,
it was really badly broken; works now, and has test cases in the test
suite).

> (which is the same
> thing as the number of characters for most encodings).

But only most, which is very important.

- Alexander Malmberg


_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to