[Bug 211762] Some locale definitions have defects
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 15 20:12:23 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211762
--- Comment #6 from Yuri Pankov <yuripv at 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.
More information about the freebsd-bugs
mailing list