Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: use type-agnostic code for storing tm_zone
On some platforms, struct tm has a tm_zone member, but its type is not consistent: - Linux: const char *tm_zone; - FreeBSD (& probably other BSDs): char *tm_zone; In order to save/restore tm_zone, we can't just use a "const char *" or "char *" variable because different parts of this code would always be a const violation on one platform or the other. Workaround: Use the tm_zone member of a full struct tm, which has the right type no matter the platform. Fixes Perl#21948.
- Loading branch information