summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-09-11 09:48:33 -0600
committerKarl Williamson <khw@cpan.org>2017-09-14 22:19:53 -0600
commit3ae5cd075d1d8f700862413406a49dc4a2f4a8ea (patch)
treebf8bc5212d70749c27d97f3e6a0877f273bcd241
parentc2b4244a1cd5bb89e0df552475efbb59ea37e706 (diff)
downloadperl-3ae5cd075d1d8f700862413406a49dc4a2f4a8ea.tar.gz
locale.c: Show how the number '112' was derived
It's unclear why the code uses this number, so expand out the expression that yields that, which makes it clearer.
-rw-r--r--locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index 4189a6248d..f4a16e4d4d 100644
--- a/locale.c
+++ b/locale.c
@@ -3045,7 +3045,7 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category)
for (i = 0; i < 7 + 12; i++) { /* 7 days; 12 months */
formatted_time = my_strftime("%A %B %Z %p",
- 0, 0, hour, dom, month, 112, 0, 0, is_dst);
+ 0, 0, hour, dom, month, 2012 - 1900, 0, 0, is_dst);
if ( ! formatted_time
|| is_utf8_invariant_string((U8 *) formatted_time, 0))
{