[patch] Build failure with locales

Peter S. Mazinger ps.m at gmx.net
Tue Nov 15 19:54:25 UTC 2005


On Tue, 15 Nov 2005, Paul Brook wrote:

> The patch below fixes a build failure when locale support is enabled.
> 
> Tested by building cross to arm-linux-gnueabi.
> 
> Paul
> 
> 2005-11-15  Paul Brook  <paul at codesourcery.com>
> 
> 	* libc/string/wstring.c: Use correct name for __wcslcpy.
> 
> Index: libc/string/wstring.c
> ===================================================================
> --- libc/string/wstring.c	(revision 12263)
> +++ libc/string/wstring.c	(working copy)
> @@ -3077,7 +3077,7 @@
>  	int pass;
>  
>  	if (!CUR_COLLATE->num_weights) { /* C locale */
> -		return wcslcpy(ws1, ws2, n);
> +		return __wcslcpy(ws1, ws2, n);
>  	}
>  
>  #ifdef __UCLIBC_MJN3_ONLY__

thanks reporting, s/wcslcpy/wcsxfrm/ (wcsxfrm being the "official" name 
for that) applied

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list