summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-18 12:39:47 -0600
committerKarl Williamson <khw@cpan.org>2018-03-19 12:18:15 -0600
commit5a53bf3882284a78c3cb93c541fb981f5e9bf4b8 (patch)
tree7e718425ec5121c168c48706635bea3cb7be717c /perl.h
parent9ff99fb340d32553ec2fa54534557cb168f284d1 (diff)
downloadperl-5a53bf3882284a78c3cb93c541fb981f5e9bf4b8.tar.gz
Fix locale problems on mingw
Various symbols get exported (or not) by makedef.pl. The determination of some of the new ones is fairly complex in perl.h, and unfortunately in general the code logic to do so must be copied into makedef.pl (until a volunteer fixes this). I thought I could avoid a bunch of this by using the symbol ${^SAFE_LOCALES} which in fact was created so that programs wouldn't have to know about this complexity. The problem is that on Windows, miniperl is always compiled single-thread and so locales are always safe, and so makedef.pl (which is called by miniperl) got the wrong information. The solution, unfortunately, is to reproduce the complexity in makedef.pl Spotted by Daniel Dragan.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index e76b9b8f32..2a500154bd 100644
--- a/perl.h
+++ b/perl.h
@@ -759,6 +759,9 @@
# endif
#endif /* !NO_LOCALE && HAS_SETLOCALE */
+/* XXX The next few defines are unfortunately duplicated in makedef.pl, and
+ * changes here MUST also be made there */
+
#ifdef USE_LOCALE /* These locale things are all subject to change */
# if defined(HAS_NEWLOCALE) \
&& defined(LC_ALL_MASK) \