[vim-scripts] 04/11: Add po-escape.diff to properly escape filenames when calling msgfmt.

James McCoy jamessan at debian.org
Thu Aug 15 04:03:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository vim-scripts.

commit 4c0a57e224269025165801282fff2ce9c4475a78
Author: James McCoy <jamessan at debian.org>
Date:   Wed Aug 14 22:28:40 2013 -0400

    Add po-escape.diff to properly escape filenames when calling msgfmt.
    
    Closes: #697135
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog              |    2 ++
 debian/patches/po-escape.diff |   19 +++++++++++++++++++
 debian/patches/series         |    1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9ae2f05..01bfad3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ vim-scripts (20121008) UNRELEASED; urgency=low
       + Remove patch disabledby-supertab.diff, merged upstream.
     - surround: Updated to 2.0
     - bufexplorer: Updated to 7.3.3
+  * Add po-escape.diff to properly escape filenames when calling msgfmt.
+    (Closes: #697135)
 
  -- James McCoy <jamessan at debian.org>  Thu, 17 Jan 2013 21:32:43 -0500
 
diff --git a/debian/patches/po-escape.diff b/debian/patches/po-escape.diff
new file mode 100644
index 0000000..05d3f47
--- /dev/null
+++ b/debian/patches/po-escape.diff
@@ -0,0 +1,19 @@
+--- a/ftplugin/po.vim
++++ b/ftplugin/po.vim
+@@ -263,14 +263,14 @@
+       " Check if the file needs to be saved first.
+       exe "if &modified | w | endif"
+       if a:action == 'stats'
+-         exe "!msgfmt --statistics -o /dev/null %"
++         exe "!msgfmt --statistics -o /dev/null " . shellescape(expand('%'), 1)
+       elseif a:action == 'test'
+          if exists("g:po_msgfmt_args")
+             let args = g:po_msgfmt_args
+          else
+             let args = '-vv -c'
+          endif
+-         exe "make! " . args . " -o /dev/null %"
++         exe "make! " . args . " -o /dev/null " . shellescape(expand('%'))
+          copen
+       endif
+    endf
diff --git a/debian/patches/series b/debian/patches/series
index e7358fa..d16e4e3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+po-escape.diff
 disabledby-calendar.diff
 disabledby-closetag.diff
 disabledby-cvsmenu.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim-scripts.git



More information about the pkg-vim-maintainers mailing list