Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2018 20:12:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 211762] Some locale definitions have defects
Message-ID:  <bug-211762-227-NmW7AHSLAJ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211762-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211762

--- Comment #6 from Yuri Pankov <yuripv@FreeBSD.org> ---
(a bit of ugly code)

$ cat t.c
#include <err.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>

int
main(void)
{
        char mbc[] = { 0xBD };
        wchar_t wc;

        if (setlocale(LC_ALL, "lv_LV.ISO8859-13") == NULL)
                err(1, "setlocale");
        if (mbtowc(&wc, mbc, 1) == -1)
                err(1, "mbtowc");
        printf("%#x\n", wc);

        return (0);
}
$ cc -o t t.c
$ ./t
0xbd

So it looks like it *is* the same.  What character did you mean exactly?

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211762-227-NmW7AHSLAJ>