Bug 104221

Summary: strxfrm: not equivalent to strncpy
Product: Documentation Reporter: Florian Weimer (fweimer)
Component: man-pagesAssignee: documentation_man-pages (documentation_man-pages)
Status: RESOLVED CODE_FIX    
Severity: normal CC: mtk.manpages
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:

Description Florian Weimer 2015-09-08 21:08:27 UTC
Version 3.81 says this:

“In the POSIX or C locales strxfrm() is equivalent to copying the string with strncpy(3).”

This is a bit misleading because the behavior on truncation is unspecified for strxfrm.
Comment 1 Michael Kerrisk 2016-03-11 19:08:27 UTC
What do you suggest Florian. Maybe just remove that NOTES section?
Comment 2 Florian Weimer 2016-03-11 19:12:04 UTC
Yes, seems reasonable.
Comment 3 Michael Kerrisk 2016-07-07 11:46:19 UTC
Okay, I removed the NOTES section.
Comment 4 Michael Kerrisk 2016-07-12 18:23:53 UTC
I should have closed this after the fix I made in Comment 3.