Reported by Rocket Aaron <i@rocka.me> at
<https://savannah.gnu.org/bugs/?67305>.
* lib/next-prime.c (next_prime): In GNU gettext, don't skip small
primes.
+2025-07-12 Bruno Haible <bruno@clisp.org>
+
+ next-prime: Revert to original behaviour in GNU gettext.
+ Reported by Rocket Aaron <i@rocka.me> at
+ <https://savannah.gnu.org/bugs/?67305>.
+ * lib/next-prime.c (next_prime): In GNU gettext, don't skip small
+ primes.
+
2025-07-12 Bruno Haible <bruno@clisp.org>
obstack-printf: Fix memory overrun on glibc systems.
size_t _GL_ATTRIBUTE_CONST
next_prime (size_t candidate)
{
+#if !defined IN_LIBGETTEXTLIB
/* Skip small primes. */
if (candidate < 10)
candidate = 10;
+#endif
/* Make it definitely odd. */
candidate |= 1;