[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libunistring] Bug in data for mirror characters?
From: |
Bruno Haible |
Subject: |
Re: [bug-libunistring] Bug in data for mirror characters? |
Date: |
Mon, 28 Nov 2016 02:43:02 +0100 |
User-agent: |
KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; ) |
Hi,
Daurnimator wrote:
> I've noticed that uc_mirror_char() of many characters is returning the
> unicode replacement character. This doesn't seem to be correct.
>
> e.g 0F3A TIBETAN MARK GUG RTAGS GYON should be mirrored to
> 0F3B TIBETAN MARK GUG RTAGS GYAS
>
> #############################################
> $ cat main.c
> #include <stdio.h>
> #include <unictype.h>
>
> int main() {
> ucs4_t c = 0xf3a, p;
> bool has_mirror = uc_mirror_char(c, &p);
> printf("%x %s %x\n", c, has_mirror?"true":"false", p);
> return 0;
> }
>
> $ gcc main.c -lunistring && ./a.out
> f3a true fffd
> #############################################
Thanks for the report. I've registered this in our bug tracker at
https://savannah.gnu.org/bugs/index.php?49721
Bruno