utf-16 iconv requires aligned buffer

Ulrich Drepper drepper@redhat.com
Thu Mar 30 19:46:00 GMT 2000


Bruno Haible <haible@ilog.fr> writes:

> Thanks for fixing that, Ulrich. But your put16 and put32 macros look like
> they contain typos. Here is a fix for this.

Fix fixed this now.  Thanks.

> Also, I think you wouldn't need get32/put32 on the "INTERNAL" side
> of each converter, if the internal buffers were allocated aligned
> (at gconv_open.c:78).

Hum, you are right.  So we have another condition for the `unaligned´
variable:

	data->__is_last.

Thanks,

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-alpha mailing list