diff options
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.diff | 29 |
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 @@ | |||
1 | From: Niko Tyni <ntyni@debian.org> | ||
2 | Subject: Fix sprintf not to ignore LC_NUMERIC with constants | ||
3 | Bug-Debian: http://bugs.debian.org/601549 | ||
4 | Bug: http://rt.perl.org/rt3/Ticket/Display.html?id=78632 | ||
5 | Origin: upstream, http://perl5.git.perl.org/perl.git/commit/b3fd61496ebc585b1115807e3195f17714662a09 | ||
6 | |||
7 | Don't fold constants in sprintf() if locales are used | ||
8 | |||
9 | An upstream regression in 5.10.1 made sprintf() ignore LC_NUMERIC for | ||
10 | numeric constants. | ||
11 | |||
12 | --- | ||
13 | op.c | 1 + | ||
14 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
15 | |||
16 | diff --git a/op.c b/op.c | ||
17 | index 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 | -- | ||
29 | tg: (c823880..) fixes/lc-numeric-sprintf (depends on: upstream) | ||