Loading...
string/FreeBSD/wcsxfrm.3.patch Libc-763.12 Libc-391.2.5
--- Libc/Libc-763.12/string/FreeBSD/wcsxfrm.3.patch
+++ Libc/Libc-391.2.5/string/FreeBSD/wcsxfrm.3.patch
@@ -1,6 +1,6 @@
---- wcsxfrm.3.bsdnew	2009-11-18 18:24:41.000000000 -0800
-+++ wcsxfrm.3	2009-11-18 18:24:41.000000000 -0800
-@@ -37,34 +37,47 @@
+--- wcsxfrm.3.orig	Fri Mar 11 08:31:43 2005
++++ wcsxfrm.3	Fri Mar 11 09:44:27 2005
+@@ -41,7 +41,8 @@
  .Dt WCSXFRM 3
  .Os
  .Sh NAME
@@ -10,60 +10,22 @@
  .Nd transform a wide string under locale
  .Sh LIBRARY
  .Lb libc
- .Sh SYNOPSIS
+@@ -49,6 +50,9 @@
  .In wchar.h
  .Ft size_t
--.Fn wcsxfrm "wchar_t * restrict dst" "const wchar_t * restrict src" "size_t n"
-+.Fo wcsxfrm
-+.Fa "wchar_t *restrict ws1"
-+.Fa "const wchar_t *restrict ws2"
-+.Fa "size_t n"
-+.Fc
-+.In wchar.h
+ .Fn wcsxfrm "wchar_t * restrict dst" "const wchar_t * restrict src" "size_t n"
 +.In xlocale.h
 +.Ft size_t
-+.Fo wcsxfrm_l
-+.Fa "wchar_t *restrict ws1"
-+.Fa "const wchar_t *restrict ws2"
-+.Fa "size_t n"
-+.Fa "locale_t loc"
-+.Fc
++.Fn wcsxfrm_l "wchar_t * restrict dst" "const wchar_t * restrict src" "size_t n" "locale_t loc"
  .Sh DESCRIPTION
  The
  .Fn wcsxfrm
- function transforms a null-terminated wide character string pointed to by
--.Fa src
--according to the current locale collation order
--then copies the transformed string
--into
--.Fa dst .
-+.Fa ws2 ,
-+according to the current locale's collation order,
-+then copies the transformed string into
-+.Fa ws1 .
- No more than
- .Fa n
- wide characters are copied into
--.Fa dst ,
--including the terminating null character added.
-+.Fa ws1 ,
-+including the terminating null character.
- If
- .Fa n
- is set to 0
- (it helps to determine an actual size needed
- for transformation),
--.Fa dst
-+.Fa ws1
- is permitted to be a
- .Dv NULL
- pointer.
-@@ -76,6 +89,14 @@ after
+@@ -80,6 +84,14 @@
  is equivalent to comparing
  two original strings with
  .Fn wcscoll .
 +.Pp
-+Although the
++While the
 +.Fn wcsxfrm
 +function uses the current locale, the
 +.Fn wcsxfrm_l
@@ -73,14 +35,7 @@
  .Sh RETURN VALUES
  Upon successful completion,
  .Fn wcsxfrm
-@@ -84,13 +105,14 @@ the terminating null character.
- If this value is
- .Fa n
- or more, the contents of
--.Fa dst
-+.Fa ws1
- are indeterminate.
- .Sh SEE ALSO
+@@ -94,7 +106,8 @@
  .Xr setlocale 3 ,
  .Xr strxfrm 3 ,
  .Xr wcscmp 3 ,
@@ -90,12 +45,3 @@
  .Sh STANDARDS
  The
  .Fn wcsxfrm
-@@ -116,7 +138,7 @@ always equivalent to comparison with
- .Fn wcscoll ;
- .Fn wcsxfrm
- only stores information about primary collation weights into
--.Fa dst ,
-+.Fa ws1 ,
- whereas
- .Fn wcscoll
- compares characters using both primary and secondary weights.