Protect against systems without +mbyte.
authorBob Hiestand <bob.hiestand@gmail.com>
Tue, 27 Sep 2011 20:38:48 +0000 (27 15:38 -0500)
committerBob Hiestand <bob.hiestand@gmail.com>
Tue, 27 Sep 2011 20:38:48 +0000 (27 15:38 -0500)
plugin/vcscommand.vim

index 349513e..6e2a1cd 100644 (file)
@@ -383,7 +383,7 @@ function! s:VCSCommandUtility.system(...)
                set sxq=\"
        endif
        try
-               if exists('*iconv')
+               if exists('*iconv') && has('multi_byte')
                        return iconv(call('system', a:000), &tenc, &enc)
                endif
                return call('system', a:000)