This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Remove unnecessary Perl_form() call
authorKarl Williamson <khw@cpan.org>
Tue, 16 Jan 2024 03:45:22 +0000 (20:45 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 17 Jan 2024 17:34:33 +0000 (10:34 -0700)
There is nothing to format here; just a constant string.

locale.c

index f819ee1..b79e7e1 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -7989,8 +7989,7 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
         PL_C_locale_obj = newlocale(LC_ALL_MASK, "C", (locale_t) 0);
         if (! PL_C_locale_obj) {
             LOCALE_UNLOCK;
-            locale_panic_(Perl_form(aTHX_
-                                "Cannot create POSIX 2008 C locale object"));
+            locale_panic_("Cannot create POSIX 2008 C locale object");
         }
         LOCALE_UNLOCK;