From f2237ee7bd8c90ea2a0174722fb4cea4b1b96b6c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 6 Mar 2019 17:09:17 +0100 Subject: fix(snippets): use locale independent shell command call instead of VimL function. It is easier to set universal locale for external command than for VimL function. --- snippets/changes.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snippets') diff --git a/snippets/changes.snippets b/snippets/changes.snippets index 9ff8334..b3fae6b 100644 --- a/snippets/changes.snippets +++ b/snippets/changes.snippets @@ -1,5 +1,5 @@ snippet ch ------------------------------------------------------------------- - `strftime("%a %b %e %X %Z %Y")` - `system('rpm --eval "%{packager}"|iconv -f utf-8 -t us-ascii//TRANSLIT')` + `system('LC_TIME=en_DK date "+%a %b %e %X %Z %Y"|tr -d "\n"')` - `system('rpm --eval "%{packager}"|iconv -f utf-8 -t us-ascii//TRANSLIT')` - ${0} - + -- cgit