POSIX gettext(): lifetime of returned values

2022-05-11 Thread Bruno Haible via austin-group-l at The Open Group
https://posix.rhansen.org/p/gettext_draft Line 357 "The returned string may be invalidated by ... a subsequent call to uselocale() in the same thread, except for calls that only query values." As explained in my mail from 2021-05-04 [1] uselocale() is a helper function to implement *_l functi

Re: POSIX gettext(): lifetime of returned values

2022-05-16 Thread Geoff Clare via austin-group-l at The Open Group
Bruno Haible wrote, on 12 May 2022: > > https://posix.rhansen.org/p/gettext_draft > Line 357 > > "The returned string may be invalidated by ... a subsequent call to > uselocale() in the same thread, except for calls that only query values." > > As explained in my mail from 2021-05-04 [1] > >

Re: POSIX gettext(): lifetime of returned values

2022-05-24 Thread Bruno Haible via austin-group-l at The Open Group
Thank you for the reply. Geoff Clare wrote: > > https://posix.rhansen.org/p/gettext_draft > > Line 357 > > ... > > If temporarily switching a thread's locale through uselocale() > > invalidates the gettext functions' results (even if only those from > > the same thread), it effectively disallows u

Re: POSIX gettext(): lifetime of returned values

2022-05-25 Thread Robert Elz via austin-group-l at The Open Group
Date:Wed, 25 May 2022 02:57:52 +0200 From:"Bruno Haible via austin-group-l at The Open Group" Message-ID: <5462894.CAdn2TfLgq@omega> | IMO, it's useful to distinguish bounded and unbounded memory leaks: | - A _bounded_ memory leak is one where the amount of lea

Re: POSIX gettext(): lifetime of returned values

2022-06-20 Thread Geoff Clare via austin-group-l at The Open Group
Bruno Haible wrote, on 25 May 2022: > > Geoff Clare wrote: > > > https://posix.rhansen.org/p/gettext_draft > > > Line 357 > > > ... > > > If temporarily switching a thread's locale through uselocale() > > > invalidates the gettext functions' results (even if only those from > > > the same thread),

Re: POSIX gettext(): lifetime of returned values

2022-06-22 Thread Bruno Haible via austin-group-l at The Open Group
Geoff Clare wrote: > > I hope this explains it: how gettext() can be implemented in a reasonable > > way, without limiting the use of uselocale(). > > In today's teleconference we changed the etherpad text to require that > uselocale() does not invalidate the returned string. That's great! Thank

Re: POSIX gettext(): lifetime of returned values

2022-06-22 Thread Bruno Haible via austin-group-l at The Open Group
Geoff Clare wrote: > We believe that all of your comments have now been addressed. ... Once > you have reviewed this last change, we plan to clean up the document Thanks for the prompt. I have reviewed the specifications of msgfmt and xgettext, and sent 7 comments about them. Bruno