Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libc/string
On Thu, Mar 26, 2020 at 10:54:21AM +0700, Robert Elz wrote:
> Date: Wed, 25 Mar 2020 20:51:25 +0000
> From: David Holland <dholland-sourcechanges%netbsd.org@localhost>
> Message-ID: <20200325205125.GA11098%netbsd.org@localhost>
>
> | I don't agree -- because applications shouldn't attempt to modify the
> | result, it should be const.
>
> The only reason apps shouldn't modify the string is in case of porting
> the app to an (well, some) ancient implementation. Because of the NLS
> requirements, the message these days (any modern implementation) must be
> read from some external file - which means the storage for it must be
> writable.
Actually, the only reason why we really need writable space is the
unknown error case. NLS could in principle be using mmaped data as well,
modulo not being able to unmap it again.
Joerg
Home |
Main Index |
Thread Index |
Old Index