[Bug 209617] Confusing behavior of newlocale() and its incomplete manual page caused wctomb() to fail
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Dec 2 20:05:12 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209617
Yuri Pankov <yuripv at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yuripv at gmx.com
--- Comment #3 from Yuri Pankov <yuripv at gmx.com> ---
Given that you didn't provide the code snippet and results, I'll just guess
that you seem to be misunderstanding what newlocale(3) is about -- it simply
creates the locale object to be used by *_l versions of the functions, i.e. you
should have used wctomb_l(3) with the locale object you created, or
uselocale(3) to set current thread's locale. The meaning of NULL and
LC_GLOBAL_LOCALE is described in xlocale(3).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list