mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
In non-Windows environments, the gpg command is prepended with “LANG=C LC_ALL=C” to ensure gpg's output is consistent to allow for parsing the information. However, that doesn't work in Windows and won't necessarily work if we ever remove the code forcing use of /bin/sh. Since Vim already knows how to influence the environment, use its “:language message …” command to set/restore the locale before/after running the gpg command. Closes jamessan/vim-gnupg#45 Signed-off-by: James McCoy <vega.james@gmail.com>