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-sourcechan...@netbsd.org>
>     Message-ID:  <20200325205125.ga11...@netbsd.org>
> 
>   | 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

Reply via email to