]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix oids_to_c.pm to not print warnings on Windows.
authorMilan Broz <gmazyland@gmail.com>
Sat, 21 Mar 2026 12:56:35 +0000 (13:56 +0100)
committerTomas Mraz <tomas@openssl.foundation>
Tue, 24 Mar 2026 17:05:22 +0000 (18:05 +0100)
The oids_to_pm with Strawberry Perl often prints these errors:
  Use of uninitialized value in join or string at Strawberry/perl/lib/re.pm line 47.

This is caused by use re 'debugcolor' in the perl module.

As Windows does not have proper termcap database and colors
also do not work in cmd shell, let's just use non-colored
'debug' version.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Tue Mar 24 17:04:23 2026
(Merged from https://github.com/openssl/openssl/pull/30521)

(cherry picked from commit 15755c047d3b123f77188a57c299144c235bbcc1)

providers/common/der/oids_to_c.pm

index 6f57df09b93afcbec211a55ba8e6430319e3b7f6..c5137065a3e4808b272971fd6d3318ca5be4edf4 100644 (file)
@@ -80,7 +80,7 @@ sub _process {
         # print STDERR "-----BEGIN DEBUG-----\n";
         # print STDERR $text;
         # print STDERR "-----END DEBUG-----\n";
-        use re 'debugcolor';
+        use re 'debug';
         while ($text =~ m/${OID_def_re}/sg) {
             my $comment = $&;
             my $name = $1;