summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff b/meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff
new file mode 100644
index 0000000000..6a39820012
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.2/debian/fixes/lc-numeric-sprintf.diff
@@ -0,0 +1,29 @@
1From: Niko Tyni <ntyni@debian.org>
2Subject: Fix sprintf not to ignore LC_NUMERIC with constants
3Bug-Debian: http://bugs.debian.org/601549
4Bug: http://rt.perl.org/rt3/Ticket/Display.html?id=78632
5Origin: upstream, http://perl5.git.perl.org/perl.git/commit/b3fd61496ebc585b1115807e3195f17714662a09
6
7Don't fold constants in sprintf() if locales are used
8
9An upstream regression in 5.10.1 made sprintf() ignore LC_NUMERIC for
10numeric constants.
11
12---
13 op.c | 1 +
14 1 files changed, 1 insertions(+), 0 deletions(-)
15
16diff --git a/op.c b/op.c
17index e94f158..3c6badb 100644
18--- a/op.c
19+++ b/op.c
20@@ -2503,6 +2503,7 @@ S_fold_constants(pTHX_ register OP *o)
21 case OP_SLE:
22 case OP_SGE:
23 case OP_SCMP:
24+ case OP_SPRINTF:
25 /* XXX what about the numeric ops? */
26 if (PL_hints & HINT_LOCALE)
27 goto nope;
28--
29tg: (c823880..) fixes/lc-numeric-sprintf (depends on: upstream)