bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSFromUnicode/GSToUnicode buffers [Was: [bug #4208]Applications won'


From: Alexander Malmberg
Subject: Re: GSFromUnicode/GSToUnicode buffers [Was: [bug #4208]Applications won't start]
Date: Wed, 09 Jul 2003 18:00:14 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]