Create a sub LC_ALL with the correct prototype.
[p5sagit/p5-mst-13.2.git] / lib / warnings.pm
index 635993b..7822f92 100644 (file)
@@ -1,4 +1,4 @@
-
+# -*- buffer-read-only: t -*-
 # !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
 # This file was created by warnings.pl
 # Any changes made here will be lost.
@@ -295,7 +295,8 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ;
 
 sub Croaker
 {
-    require Carp;
+    require Carp::Heavy; # this initializes %CarpInternal
+    local $Carp::CarpInternal{'warnings'};
     delete $Carp::CarpInternal{'warnings'};
     Carp::croak(@_);
 }
@@ -498,3 +499,4 @@ sub warnif
 }
 
 1;
+# ex: set ro: