diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-03-06 17:09:17 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 16:52:28 +0100 |
commit | f2237ee7bd8c90ea2a0174722fb4cea4b1b96b6c (patch) | |
tree | dda41e7e7435b435b6841521b2b03cf6133533f7 /snippets/changes.snippets | |
parent | a84c2b85ca02d49bb854b23dfed2bdabe8ea1b54 (diff) | |
download | vim-suse-changes-f2237ee7bd8c90ea2a0174722fb4cea4b1b96b6c.tar.gz |
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.
Diffstat (limited to 'snippets/changes.snippets')
-rw-r--r-- | snippets/changes.snippets | 4 |
1 files changed, 2 insertions, 2 deletions
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} - + |