diff -rupN gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c gettext-0.22.5-new/gettext-tools/gnulib-lib/localtime.c
--- gettext-0.22.5/gettext-tools/gnulib-lib/localtime.c	2024-02-21 11:44:25.000000000 +0100
+++ gettext-0.22.5-new/gettext-tools/gnulib-lib/localtime.c	2024-03-04 18:04:45.369463219 +0100
@@ -63,11 +63,11 @@ rpl_localtime (const time_t *tp)
       char **env = _environ;
       wchar_t **wenv = _wenviron;
       if (env != NULL)
-        for (char *s = env; *s != NULL; s++)
+        for (char *s = *env; *s != NULL; s++)
           if (s[0] == 'T' && s[1] == 'Z' && s[2] == '=')
             s[0] = '$';
       if (wenv != NULL)
-        for (wchar_t *ws = wenv; *ws != NULL; ws++)
+        for (wchar_t *ws = *wenv; *ws != NULL; ws++)
           if (ws[0] == L'T' && ws[1] == L'Z' && ws[2] == L'=')
             ws[0] = L'$';
     }
