Package: libslang2
Version: 2.0.6-2
Severity: important

Hi,

you've added the patch 080_wide_chars (why?) which breaks the function
SLutf8_skip_chars().

This example should skip 1 character, but returns in dnum it has skipped
2 characters. Confusing.

#v+
#include <slang.h>
#include <stdio.h>

int main(void)
{
    SLuchar_Type string[] = "\xE3\x82\xA6\xE3\x82\xA7\xE3\x83\x96\xE3";
    unsigned int dnum;

    SLutf8_skip_chars(string, string+9, 1, &dnum, 1);

    printf("%d\n", dnum);

    return 0;
}
#v-

Bye, Jörg.

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-rc4
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages libslang2 depends on:
ii  libc6                         2.3.6-10   GNU C Library: Shared libraries

libslang2 recommends no packages.

-- no debconf information

Attachment: pgpVeaXlzSJCb.pgp
Description: PGP signature

Reply via email to