[Openmp-commits] [openmp] r247787 - Force the readelf call to be in English

Sylvestre Ledru via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 16 05:01:14 PDT 2015


Author: sylvestre
Date: Wed Sep 16 07:01:14 2015
New Revision: 247787

URL: http://llvm.org/viewvc/llvm-project?rev=247787&view=rev
Log:
Force the readelf call to be in English

Summary:
For example, when readelf is called on a french localization, it will find "Librairie partagées" instead of "shared library"


Reviewers: AndreyChurbanov, jcownie

Differential Revision: http://reviews.llvm.org/D12902

Modified:
    openmp/trunk/runtime/tools/check-depends.pl

Modified: openmp/trunk/runtime/tools/check-depends.pl
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/check-depends.pl?rev=247787&r1=247786&r2=247787&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/check-depends.pl (original)
+++ openmp/trunk/runtime/tools/check-depends.pl Wed Sep 16 07:01:14 2015
@@ -105,6 +105,11 @@ sub get_deps_readelf($) {
         $tool = "readelf";
     }
 
+    # Force the readelf call to be in English. For example, when readelf
+    # is called on a french localization, it will find "Librairie partagees"
+    # instead of shared library
+    $ENV{ LANG } = "C";
+
     execute( [ $tool, "-d", $file ], -stdout => \@bulk );
     debug( @bulk, "(eof)" );
 




More information about the Openmp-commits mailing list