aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 5 insertions, 0 deletions
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;
}