aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/po/check.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/po/check.vim b/src/nvim/po/check.vim
index d55d4cfa4d..aca878f9d5 100644
--- a/src/nvim/po/check.vim
+++ b/src/nvim/po/check.vim
@@ -162,7 +162,10 @@ endwhile
" Check that the file is well formed according to msgfmts understanding
if executable("msgfmt")
let filename = expand("%")
- let a = system("msgfmt --statistics OLD_PO_FILE_INPUT=yes " . filename)
+ " Newer msgfmt does not take OLD_PO_FILE_INPUT argument, must be in
+ " environment.
+ let $OLD_PO_FILE_INPUT = 'yes'
+ let a = system("msgfmt --statistics " . filename)
if v:shell_error != 0
let error = matchstr(a, filename.':\zs\d\+\ze:')+0
for line in split(a, '\n') | echomsg line | endfor