--- git/bleadperl/lib/locale.t 2018-07-15 10:33:46 +1000
+++ locale.t 2018-07-29 22:21:25 +1000
@@ -2167,8 +2167,8 @@
my $first_c_test = $locales_test_number;
$test_names{++$locales_test_number} = 'Verify that a different lo
+cale radix works when doing "==" with a constant';
- if ($Config{usequadmath}) {
- print "# Skip: no locale radix with usequadmath ($test_names{
+$locales_test_number})\n";
+ if ($Config{usequadmath} || ($Config{uselongdouble} && $Config{d_
+strtold}) || (!$Config{uselongdouble} && $Config{d_strtod})) {
+ print "# Skip: no locale radix with Perl_strtod ($test_names{
+$locales_test_number})\n";
report_result($Locale, $locales_test_number, 1);
} else {
report_result($Locale, $locales_test_number, $ok3);
@@ -2176,8 +2176,8 @@
}
$test_names{++$locales_test_number} = 'Verify that a different lo
+cale radix works when doing "==" with a scalar';
- if ($Config{usequadmath}) {
- print "# Skip: no locale radix with usequadmath ($test_names{
+$locales_test_number})\n";
+ if ($Config{usequadmath} || ($Config{uselongdouble} && $Config{d_
+strtold}) || (!$Config{uselongdouble} && $Config{d_strtod})) {
+ print "# Skip: no locale radix with Perl_strtod ($test_names{
+$locales_test_number})\n";
report_result($Locale, $locales_test_number, 1);
} else {
report_result($Locale, $locales_test_number, $ok4);
@@ -2198,8 +2198,8 @@
$test_names{$locales_test_number} = 'Verify that "==" with a scal
+ar still works in inner no locale';
$test_names{++$locales_test_number} = 'Verify that "==" with a sc
+alar and an intervening sprintf still works in inner no locale';
- if ($Config{usequadmath}) {
- print "# Skip: no locale radix with usequadmath ($test_names{
+$locales_test_number})\n";
+ if ($Config{usequadmath} || ($Config{uselongdouble} && $Config{d_
+strtold}) || (!$Config{uselongdouble} && $Config{d_strtod})) {
+ print "# Skip: no locale radix with Perl_strtod ($test_names{
+$locales_test_number})\n";
report_result($Locale, $locales_test_number, 1);
} else {
report_result($Locale, $locales_test_number, $ok8);
@@ -2218,8 +2218,8 @@
$problematical_tests{$locales_test_number} = 1;
$test_names{++$locales_test_number} = 'Verify that after a no-loc
+ale block, a different locale radix still works when doing "==" with
+a scalar and an intervening sprintf';
- if ($Config{usequadmath}) {
- print "# Skip: no locale radix with usequadmath ($test_names{
+$locales_test_number})\n";
+ if ($Config{usequadmath} || ($Config{uselongdouble} && $Config{d_
+strtold}) || (!$Config{uselongdouble} && $Config{d_strtod})) {
+ print "# Skip: no locale radix with Perl_strtod ($test_names{
+$locales_test_number})\n";
report_result($Locale, $locales_test_number, 1);
} else {
report_result($Locale, $locales_test_number, $ok11);
@@ -2465,8 +2465,8 @@
}
}
- if ($Config{usequadmath}) {
- print "# Skip: no locale radix with usequadmath ($Locale)
+\n";
+ if ($Config{usequadmath} || ($Config{uselongdouble} && $Confi
+g{d_strtold}) || (!$Config{uselongdouble} && $Config{d_strtod})) {
+ print "# Skip: no locale radix with Perl_strtod ($Locale)
+\n";
report_result($Locale, $locales_test_number, 1);
} else {
report_result($Locale, $locales_test_number, @f == 0);
(Safest to avoid line wrapping by electing to "download")
If you apply that patch to the lib/locale.t that shipped with blead_patched.tar.gz then all tests should (hopefully) pass.
Thanks again for the help you've provided. I much appreciate it.
Cheers, Rob | [reply] [d/l] [select] |
UPDATE: Patches for t/run/locale.t and ext/POSIX/t/posix.t have been submitted to perlbug - see https://rt.perl.org/Ticket/Display.html?id=133417
UPDATE 2: Those patches to t/run/locale.t and ext/POSIX/t/posix.t have now been applied to bleadperl.
Oh ... I failed to specifically thank you for providing those 2 patches.
I'll certainly be including them as I think that -Ud_strtod builds should be supported.
With current perl source there's no point in building with -Ud_strtod (or -Ud_strtold) but with the patches I'm proposing, those switches provide the simplest way to resort to using perl's Atof for assigning floating point values.
I don't expect that anyone in their right mind would want to opt for using perl's Atof, but I think the option should remain and the test suite should pass all tests.
Cheers, Rob | [reply] |