Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 10 Nov 2015 23:10:51 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [BUG] nl_langinfo returns NULL instead of empty string

On Tue, Nov 10, 2015 at 09:26:25PM +0100, smidjar2.reg@...il.cz wrote:
> Manual page for nl_langinfo() function says it should return an
> empty string when 'item' is not valid. Musl's implementation
> currently returns NULL. This is causing issue for applications
> compiled against glibc using gnu extensions, such as 'GROUPING'
> (0x10002) item (which is returning '\003\003' for glibc on my
> system, but NULL when using musl).
> 
> One example of such application is 'Champions of Regnum' game. It is
> crashing with musl, because it strncpy() a string returned from the
> function.

Thanks! Fixed by commit a946e8117ed51dd771bd8cac3575fc28a0399a32.

Rich

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.