Loading...
--- /dev/null
+++ Libc/Libc-391/stdio/FreeBSD/fputws.3.patch
@@ -0,0 +1,47 @@
+--- fputws.3.orig Fri Mar 11 11:53:01 2005
++++ fputws.3 Fri Mar 11 11:53:53 2005
+@@ -41,7 +41,8 @@
+ .Dt FPUTWS 3
+ .Os
+ .Sh NAME
+-.Nm fputws
++.Nm fputws ,
++.Nm fputws_l
+ .Nd output a line of wide characters to a stream
+ .Sh LIBRARY
+ .Lb libc
+@@ -50,6 +51,9 @@
+ .In wchar.h
+ .Ft int
+ .Fn fputws "const wchar_t * restrict ws" "FILE * restrict fp"
++.In xlocale.h
++.Ft int
++.Fn fputws_l "const wchar_t * restrict ws" "FILE * restrict fp" "locale_t loc"
+ .Sh DESCRIPTION
+ The
+ .Fn fputws
+@@ -57,6 +61,14 @@
+ .Fa ws
+ to the stream pointed to by
+ .Fa fp .
++.Pp
++While the
++.Fn fputws
++function uses the current locale, the
++.Fn fputws_l
++function may be passed a locale directly. See
++.Xr xlocale 3
++for more information.
+ .Sh RETURN VALUES
+ The
+ .Fn fputws
+@@ -84,7 +96,8 @@
+ .Xr ferror 3 ,
+ .Xr fputs 3 ,
+ .Xr putwc 3 ,
+-.Xr stdio 3
++.Xr stdio 3 ,
++.Xr xlocale 3
+ .Sh STANDARDS
+ The
+ .Fn fputws