Bug 61654

Summary: Add wcslcpy() and wcslcat()
Product: libbsd Reporter: Nathan Phillip Brink (binki) <ohnobinki>
Component: libbsdAssignee: Guillem Jover <guillem>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: flameeyes
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Nathan Phillip Brink (binki) 2013-03-01 06:28:11 UTC
BSD systems implement wide-character versions of the small strl* family of functions. There are (few) programs out there which ship their own implementations of wcslcpy() and wcslcat(). Being one of the distinguishing sets of functions available on BSD, it would be great if the wide-character versions could be shipped with libbsd. Then, when programs move to using libbsd, they can drop their bundled wcsl* function at the same time as when they clean out their strl* implementations.

I assume that these implementations can just be copied out from the existing implementations in the openbsd libc with little change like the strl* functions. I might attempt to make such a patch that does such if I have time.
Comment 1 Guillem Jover 2013-03-01 10:48:36 UTC
I actually have those locally, pending a push, in addition to fgetwln().

Thanks for the report.
Comment 2 Guillem Jover 2013-05-27 19:14:45 UTC
Fixed in libbsd 0.5.0.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.