--- wcsftime.3.orig Fri Mar 11 19:44:47 2005 +++ wcsftime.3 Fri Mar 11 19:49:00 2005 @@ -28,7 +28,8 @@ .Dt WCSFTIME 3 .Os .Sh NAME -.Nm wcsftime +.Nm wcsftime , +.Nm wcsftime_l .Nd "convert date and time to a wide-character string" .Sh LIBRARY .Lb libc @@ -39,6 +40,12 @@ .Fa "wchar_t * restrict wcs" "size_t maxsize" .Fa "const wchar_t * restrict format" "const struct tm * restrict timeptr" .Fc +.In xlocale.h +.Ft size_t +.Fo wcsftime_l +.Fa "wchar_t * restrict wcs" "size_t maxsize" +.Fa "const wchar_t * restrict format" "const struct tm * restrict timeptr" "locale_t loc" +.Fc .Sh DESCRIPTION The .Fn wcsftime @@ -48,6 +55,14 @@ Refer to .Xr strftime 3 for a detailed description. +.Pp +While the +.Fn wcsftime +function uses the current locale, the +.Fn wcsftime_l +function may be passed a locale directly. See +.Xr xlocale 3 +for more information. .Sh COMPATIBILITY Some early implementations of .Fn wcsftime @@ -58,7 +73,8 @@ instead of .Vt "const wchar_t *" . .Sh SEE ALSO -.Xr strftime 3 +.Xr strftime 3 , +.Xr xlocale 3 .Sh STANDARDS The .Fn wcsftime