Package: libunistring0
Version: 0.9.6+really0.9.3-0.1
Severity: important

Dear Maintainer,

please update to libunistring2.

1. There is no API for Unicode joining types in libunistring0, but in 
libunistring2.
   This API is needed for IDNA2008 processing done by libidn2.
   Currently, libidn2 carries it's own copy of gnulib's unicode code with all
   the disadvantages this has.

2. libunistring0 reports codepoint 0x1a66 as BIDI category 'L' which isn't 
correct.
   Libunistring2 correctly reports it as 'NSM'.
   This bug breaks the test suite of libidn2 when linking with libunistring.
   
Small C code to demonstrate 2.:
/* Info: http://www.fileformat.info/info/unicode/char/1a66/index.htm */
#include <stdio.h>
#include <unictype.h>
int main(void)
{
        uint32_t cp = 0x1a66; /* TAI THAM VOWEL SIGN II */
        int bc = uc_bidi_category (cp);
        printf("0x%4X bidi category: %s\n", cp, uc_bidi_category_name(bc));
        return 0;
}

Compile it with libunistring0 (from unstable)
  gcc x.c -o x -lunistring

Compile it with libunistring2 (from experimental)
  gcc x.c -o x /usr/lib/x86_64-linux-gnu/libunistring.so.2

Regards, Tim

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libunistring0 depends on:
ii  libc6  2.24-7

libunistring0 recommends no packages.

libunistring0 suggests no packages.

-- no debconf information

Reply via email to