Date: Sat, 15 Dec 2018 07:51:15 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234010] Lack of Unicode support in strfmon breaks monitary formatting Message-ID: <bug-234010-227-Fi4hR0dAp1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-234010-227@https.bugs.freebsd.org/bugzilla/> References: <bug-234010-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=234010 Conrad Meyer <cem@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|11.2-RELEASE |CURRENT CC| |cem@freebsd.org --- Comment #1 from Conrad Meyer <cem@freebsd.org> --- Present on CURRENT as well. Full reproducer program: #include <locale.h> #include <monetary.h> #include <stdio.h> int main(void) { char buf[80]; double money = 123456.78; setlocale(LC_MONETARY, "sv_SE.UTF-8"); strfmon(buf, sizeof(buf), "%i", money); printf("'%s'\n", buf); return 0; } $ ./a.exe | hd 00000000 27 31 32 33 c2 34 35 36 2c 37 38 20 53 45 4b 20 |'123.456,78 SEK | // 1 2 3 ^^ 4 5 6 ... -- 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-234010-227-Fi4hR0dAp1>
