summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_compiler.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-03 21:26:38 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-03 21:26:38 +0200
commitf0447e89a52885630947510f2d1b55f665a1a20e (patch)
tree8bc1a1f30dcd04657b8804192b5959f8d0f9fd42 /src/testdir/test_compiler.vim
parent851332ea9cdabf24980a7f7c293da81fa990f864 (diff)
patch 8.1.0146: when $LANG is set the compiler test may failv8.1.0146
Problem: When $LANG is set the compiler test may fail. Solution: Unset $LANG.
Diffstat (limited to 'src/testdir/test_compiler.vim')
-rw-r--r--src/testdir/test_compiler.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim
index 29d02b213d..46c14d8bc3 100644
--- a/src/testdir/test_compiler.vim
+++ b/src/testdir/test_compiler.vim
@@ -5,6 +5,11 @@ func Test_compiler()
return
endif
+ " $LANG changes the output of Perl.
+ if $LANG != ''
+ unlet $LANG
+ endif
+
e Xfoo.pl
compiler perl
call assert_equal('perl', b:current_compiler)