aboutsummaryrefslogtreecommitdiffstats
path: root/snippets/changes.snippets
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-03-06 17:09:17 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-28 16:52:28 +0100
commitf2237ee7bd8c90ea2a0174722fb4cea4b1b96b6c (patch)
treedda41e7e7435b435b6841521b2b03cf6133533f7 /snippets/changes.snippets
parenta84c2b85ca02d49bb854b23dfed2bdabe8ea1b54 (diff)
downloadvim-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.snippets4
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}
-
+