From 6c7074b5f641f73e92b6b906f632cc5f97357408 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Sep 2010 23:30:01 +0200 Subject: vim_mode: Print a warning for UTF-8 mode if Perl < 5.8.1. --- vim-mode/vim_mode.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 944db53..dbe953c 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1075,6 +1075,11 @@ sub setup_changed { $non_word = qr/[^\w_\s]/o; } + if ($new_utf8 and (!$^V or $^V lt v5.8.1)) { + _warn("Warning: UTF-8 isn't supported very well in perl < 5.8.1! " . + "Please disable vim_mode_utf8."); + } + $utf8 = $new_utf8; } -- cgit v1.2.3