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

--- Comment #6 from Yuri Pankov <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to