Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Dec 2017 20:05:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 209617] Confusing behavior of newlocale() and its incomplete manual page caused wctomb() to fail
Message-ID:  <bug-209617-8-HW23CpPgTt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209617-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209617-8@https.bugs.freebsd.org/bugzilla/>

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

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

Yuri Pankov <yuripv@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuripv@gmx.com

--- Comment #3 from Yuri Pankov <yuripv@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209617-8-HW23CpPgTt>