diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-27 21:30:01 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-27 21:33:33 +0000 |
commit | 6c7074b5f641f73e92b6b906f632cc5f97357408 (patch) | |
tree | d1ed1b5680e3ceed07f82c1cb05a24752f6c9a2e /vim-mode | |
parent | vim_mode: Use new _warn() to display warnings. (diff) | |
download | irssi-scripts-6c7074b5f641f73e92b6b906f632cc5f97357408.tar.gz irssi-scripts-6c7074b5f641f73e92b6b906f632cc5f97357408.zip |
vim_mode: Print a warning for UTF-8 mode if Perl < 5.8.1.
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 5 |
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; } |